home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / math / yplot-0.000 / yplot-0
Tape Archive  |  1996-06-10  |  2.9 MB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive (GNU) default
99% file POSIX tar archive (GNU), directory yplot-0.9/, mode 40755 , uid 144 , gid 144 , size 0 , seconds 6157020171, user conrad, group users default
98% file data default
62% TrID TAR - Tape ARchive (GNU) default
37% TrID TAR - Tape ARchive (directory) default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype GNU tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive (GNU), owner user name: "9/" default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 79 70 6c 6f 74 2d 30 2e | 39 2f 00 00 00 00 00 00 |yplot-0.|9/......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 20 31 |.... 407|55 . 1|
|00000070| 34 34 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |44 . 1|44 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 36 31 35 37 30 32 30 | 0 | 6157020|
|00000090| 31 37 31 20 20 31 31 32 | 37 35 00 20 35 00 00 00 |171 112|75. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 63 6f 6e 72 61 64 00 |.ustar |.conrad.|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 79 70 6c 6f 74 2d 30 2e | 39 2f 72 65 61 64 2e 63 |yplot-0.|9/read.c|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00000270| 34 34 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |44 . 1|44 . |
|00000280| 20 20 31 37 30 34 36 20 | 20 36 31 34 33 37 30 34 | 17046 | 6143704|
|00000290| 32 36 37 20 20 31 32 35 | 31 33 00 20 30 00 00 00 |267 125|13. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 63 6f 6e 72 61 64 00 |.ustar |.conrad.|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 23 64 65 66 69 6e 65 20 | 44 4f 55 42 4c 45 0a 23 |#define |DOUBLE.#|
|00000410| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00000420| 3e 20 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |> .#incl|ude <std|
|00000430| 6c 69 62 2e 68 3e 20 0a | 23 69 6e 63 6c 75 64 65 |lib.h> .|#include|
|00000440| 20 22 79 69 6f 2e 68 22 | 0a 0a 2f 2a 2a 2a 2a 2a | "yio.h"|../*****|
|00000450| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000460| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000470| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000480| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000490| 2a 2f 0a 2f 2a 20 53 65 | 61 72 63 68 20 66 6f 72 |*/./* Se|arch for|
|000004a0| 20 63 68 61 72 20 74 65 | 73 74 20 69 6e 20 73 74 | char te|st in st|
|000004b0| 72 69 6e 67 20 64 61 74 | 61 2c 20 72 65 74 75 72 |ring dat|a, retur|
|000004c0| 6e 20 69 6e 64 65 78 2c | 20 2d 31 20 69 66 20 6e |n index,| -1 if n|
|000004d0| 6f 74 20 66 6f 75 6e 64 | 20 2a 2f 0a 2f 2a 20 54 |ot found| */./* T|
|000004e0| 65 73 74 65 64 20 4f 4b | 20 2a 2f 0a 69 6e 74 20 |ested OK| */.int |
|000004f0| 69 6e 28 63 68 61 72 20 | 74 65 73 74 2c 63 68 61 |in(char |test,cha|
|00000500| 72 20 64 61 74 61 5b 5d | 29 0a 7b 20 69 6e 74 20 |r data[]|).{ int |
|00000510| 63 6f 75 6e 74 3b 0a 20 | 20 69 6e 74 20 64 61 74 |count;. | int dat|
|00000520| 61 5f 6c 65 6e 3b 0a 20 | 20 64 61 74 61 5f 6c 65 |a_len;. | data_le|
|00000530| 6e 3d 73 74 72 6c 65 6e | 28 64 61 74 61 29 3b 0a |n=strlen|(data);.|
|00000540| 20 20 66 6f 72 20 28 63 | 6f 75 6e 74 3d 30 3b 28 | for (c|ount=0;(|
|00000550| 74 65 73 74 21 3d 64 61 | 74 61 5b 63 6f 75 6e 74 |test!=da|ta[count|
|00000560| 5d 29 26 26 28 63 6f 75 | 6e 74 3c 64 61 74 61 5f |])&&(cou|nt<data_|
|00000570| 6c 65 6e 29 3b 2b 2b 63 | 6f 75 6e 74 29 3b 0a 20 |len);++c|ount);. |
|00000580| 20 69 66 20 28 63 6f 75 | 6e 74 3d 3d 64 61 74 61 | if (cou|nt==data|
|00000590| 5f 6c 65 6e 29 20 63 6f | 75 6e 74 3d 2d 31 3b 20 |_len) co|unt=-1; |
|000005a0| 20 20 20 20 20 20 20 2f | 2a 20 73 74 72 69 6e 67 | /|* string|
|000005b0| 20 6e 6f 74 20 66 6f 75 | 6e 64 20 2a 2f 0a 20 20 | not fou|nd */. |
|000005c0| 72 65 74 75 72 6e 28 63 | 6f 75 6e 74 29 3b 0a 7d |return(c|ount);.}|
|000005d0| 0a 0a 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |../*****|********|
|000005e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000600| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000610| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0a 2f 2a 20 41 64 |********|*/./* Ad|
|00000620| 76 61 6e 63 65 20 66 69 | 6c 65 20 70 6f 69 6e 74 |vance fi|le point|
|00000630| 65 72 20 74 6f 20 6f 6e | 65 20 61 66 74 65 72 20 |er to on|e after |
|00000640| 74 68 65 20 66 69 72 73 | 74 20 6f 6e 65 20 66 6f |the firs|t one fo|
|00000650| 75 6e 64 20 62 65 6c 6f | 6e 67 69 6e 67 20 74 6f |und belo|nging to|
|00000660| 0a 20 2a 20 74 65 73 74 | 2e 20 52 65 74 75 72 6e |. * test|. Return|
|00000670| 73 20 2d 31 20 69 66 20 | 6e 6f 6e 65 20 66 6f 75 |s -1 if |none fou|
|00000680| 6e 64 20 6f 72 20 69 6e | 64 65 78 20 6f 66 20 63 |nd or in|dex of c|
|00000690| 68 61 72 20 69 6e 20 74 | 65 73 74 20 66 6f 75 6e |har in t|est foun|
|000006a0| 64 20 2a 2f 0a 20 2f 2a | 20 54 65 73 74 65 64 20 |d */. /*| Tested |
|000006b0| 4f 4b 20 2a 2f 0a 69 6e | 74 20 61 64 76 61 6e 63 |OK */.in|t advanc|
|000006c0| 65 5f 74 6f 28 46 49 4c | 45 20 2a 66 6c 65 2c 20 |e_to(FIL|E *fle, |
|000006d0| 20 20 20 2f 2a 20 49 6e | 70 75 74 20 66 69 6c 65 | /* In|put file|
|000006e0| 20 70 6f 69 6e 74 65 72 | 2a 2f 0a 09 20 20 20 20 | pointer|*/.. |
|000006f0| 20 20 63 68 61 72 20 74 | 65 73 74 5b 5d 2c 20 20 | char t|est[], |
|00000700| 20 2f 2a 20 53 74 72 69 | 6e 67 20 74 6f 20 74 65 | /* Stri|ng to te|
|00000710| 73 74 20 66 6f 72 20 20 | 2a 2f 0a 20 20 20 20 20 |st for |*/. |
|00000720| 20 20 20 20 20 20 20 20 | 20 69 6e 74 20 2a 66 6f | | int *fo|
|00000730| 75 6e 64 29 0a 7b 20 69 | 6e 74 20 63 6f 75 6e 74 |und).{ i|nt count|
|00000740| 3b 0a 20 20 63 68 61 72 | 20 72 65 61 64 3b 0a 20 |;. char| read;. |
|00000750| 20 64 6f 20 7b 20 63 6f | 75 6e 74 3d 66 73 63 61 | do { co|unt=fsca|
|00000760| 6e 66 28 66 6c 65 2c 22 | 25 63 22 2c 26 72 65 61 |nf(fle,"|%c",&rea|
|00000770| 64 29 3b 0a 20 20 20 20 | 20 20 20 2a 66 6f 75 6e |d);. | *foun|
|00000780| 64 3d 69 6e 28 72 65 61 | 64 2c 74 65 73 74 29 3b |d=in(rea|d,test);|
|00000790| 0a 20 20 20 20 20 7d 20 | 77 68 69 6c 65 20 28 28 |. } |while ((|
|000007a0| 2a 66 6f 75 6e 64 3c 30 | 29 26 26 28 63 6f 75 6e |*found<0|)&&(coun|
|000007b0| 74 3e 30 29 29 3b 0a 20 | 20 72 65 74 75 72 6e 28 |t>0));. | return(|
|000007c0| 63 6f 75 6e 74 29 3b 20 | 20 20 20 20 20 20 20 20 |count); | |
|000007d0| 20 20 20 2f 2a 72 65 74 | 75 72 6e 73 20 76 61 6c | /*ret|urns val|
|000007e0| 75 65 20 6f 66 20 6c 61 | 73 74 20 27 69 6e 27 20 |ue of la|st 'in' |
|000007f0| 66 75 6e 63 74 69 6f 6e | 20 2a 2f 0a 7d 0a 0a 2f |function| */.}../|
|00000800| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000810| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000820| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000830| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000840| 2a 2a 2a 2a 2a 2a 2f 0a | 2f 2a 20 41 64 76 61 6e |******/.|/* Advan|
|00000850| 63 65 20 66 69 6c 65 20 | 70 6f 69 6e 74 65 72 20 |ce file |pointer |
|00000860| 74 6f 20 6f 6e 65 20 61 | 66 74 65 72 20 74 68 65 |to one a|fter the|
|00000870| 20 66 69 72 73 74 20 6f | 6e 65 20 66 6f 75 6e 64 | first o|ne found|
|00000880| 20 62 65 6c 6f 6e 67 69 | 6e 67 20 74 6f 0a 20 2a | belongi|ng to. *|
|00000890| 20 74 65 73 74 2e 20 52 | 65 74 75 72 6e 73 20 2d | test. R|eturns -|
|000008a0| 31 20 69 66 20 6e 6f 6e | 65 20 66 6f 75 6e 64 20 |1 if non|e found |
|000008b0| 6f 72 20 69 6e 64 65 78 | 20 6f 66 20 63 68 61 72 |or index| of char|
|000008c0| 20 69 6e 20 74 65 73 74 | 20 66 6f 75 6e 64 20 2a | in test| found *|
|000008d0| 2f 0a 20 2f 2a 20 54 65 | 73 74 65 64 20 4f 4b 20 |/. /* Te|sted OK |
|000008e0| 2a 2f 0a 69 6e 74 20 73 | 61 64 76 61 6e 63 65 5f |*/.int s|advance_|
|000008f0| 74 6f 28 63 68 61 72 20 | 73 74 72 5b 5d 2c 20 20 |to(char |str[], |
|00000900| 20 20 2f 2a 20 49 6e 70 | 75 74 20 73 74 72 69 6e | /* Inp|ut strin|
|00000910| 67 2a 2f 0a 20 20 20 09 | 20 20 20 20 20 20 20 20 |g*/. .| |
|00000920| 63 68 61 72 20 74 65 73 | 74 5b 5d 2c 20 20 20 2f |char tes|t[], /|
|00000930| 2a 20 53 74 72 69 6e 67 | 20 74 6f 20 74 65 73 74 |* String| to test|
|00000940| 20 66 6f 72 20 20 2a 2f | 0a 20 20 20 20 20 20 20 | for */|. |
|00000950| 20 20 20 20 20 20 20 20 | 20 69 6e 74 20 2a 66 6f | | int *fo|
|00000960| 75 6e 64 29 0a 7b 20 69 | 6e 74 20 63 6f 75 6e 74 |und).{ i|nt count|
|00000970| 3d 30 3b 0a 20 20 63 68 | 61 72 20 72 65 61 64 3b |=0;. ch|ar read;|
|00000980| 0a 20 20 64 6f 20 7b 20 | 72 65 61 64 3d 73 74 72 |. do { |read=str|
|00000990| 5b 63 6f 75 6e 74 2b 2b | 5d 3b 0a 20 20 20 20 20 |[count++|];. |
|000009a0| 20 20 2a 66 6f 75 6e 64 | 3d 69 6e 28 72 65 61 64 | *found|=in(read|
|000009b0| 2c 74 65 73 74 29 3b 0a | 20 20 20 20 20 7d 20 77 |,test);.| } w|
|000009c0| 68 69 6c 65 20 28 28 2a | 66 6f 75 6e 64 3c 30 29 |hile ((*|found<0)|
|000009d0| 26 26 28 63 6f 75 6e 74 | 3e 30 29 29 3b 0a 20 20 |&&(count|>0));. |
|000009e0| 72 65 74 75 72 6e 28 63 | 6f 75 6e 74 29 3b 20 20 |return(c|ount); |
|000009f0| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 72 65 74 75 | | /*retu|
|00000a00| 72 6e 73 20 76 61 6c 75 | 65 20 6f 66 20 6c 61 73 |rns valu|e of las|
|00000a10| 74 20 27 69 6e 27 20 66 | 75 6e 63 74 69 6f 6e 20 |t 'in' f|unction |
|00000a20| 2a 2f 0a 7d 0a 0a 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*/.}../*|********|
|00000a30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2f 0a 2f |********|*****/./|
|00000a70| 2a 20 52 65 61 64 20 63 | 68 61 72 73 20 69 6e 74 |* Read c|hars int|
|00000a80| 6f 20 64 61 74 61 20 75 | 6e 74 69 6c 20 6f 6e 65 |o data u|ntil one|
|00000a90| 20 6f 66 20 63 68 61 72 | 73 20 69 6e 20 74 65 73 | of char|s in tes|
|00000aa0| 74 20 69 73 20 6d 65 74 | 2e 20 52 65 74 75 72 6e |t is met|. Return|
|00000ab0| 73 20 6c 61 73 74 0a 20 | 2a 20 66 73 63 61 6e 66 |s last. |* fscanf|
|00000ac0| 20 76 61 6c 75 65 20 61 | 6e 64 20 6c 61 73 74 20 | value a|nd last |
|00000ad0| 69 6e 74 20 63 6f 6e 74 | 61 69 6e 73 20 6c 61 73 |int cont|ains las|
|00000ae0| 74 20 69 6e 64 65 78 20 | 6f 66 20 74 65 73 74 20 |t index |of test |
|00000af0| 63 68 61 72 20 66 6f 75 | 6e 64 2e 0a 20 2a 20 42 |char fou|nd.. * B|
|00000b00| 6f 74 68 20 73 68 6f 75 | 6c 64 20 62 65 20 30 20 |oth shou|ld be 0 |
|00000b10| 69 66 20 65 72 72 6f 72 | 20 6f 63 63 75 72 65 64 |if error| occured|
|00000b20| 0a 2a 2f 0a 2f 2a 20 54 | 65 73 74 65 64 20 4f 4b |.*/./* T|ested OK|
|00000b30| 20 2a 2f 0a 69 6e 74 20 | 72 65 61 64 5f 74 6f 28 | */.int |read_to(|
|00000b40| 46 49 4c 45 20 2a 66 6c | 65 2c 0a 09 20 20 20 20 |FILE *fl|e,.. |
|00000b50| 63 68 61 72 20 74 65 73 | 74 5b 5d 2c 20 20 20 20 |char tes|t[], |
|00000b60| 20 20 20 2f 2a 20 54 65 | 73 74 20 63 68 61 72 73 | /* Te|st chars|
|00000b70| 20 2a 2f 0a 09 20 20 20 | 20 63 68 61 72 20 64 61 | */.. | char da|
|00000b80| 74 61 5b 5d 2c 20 20 20 | 20 20 20 20 2f 2a 20 52 |ta[], | /* R|
|00000b90| 65 74 75 72 6e 20 73 74 | 72 69 6e 67 20 2a 2f 0a |eturn st|ring */.|
|00000ba0| 20 20 20 20 20 20 63 6f | 6e 73 74 20 69 6e 74 20 | co|nst int |
|00000bb0| 6d 61 78 5f 6c 65 6e 2c | 20 20 20 20 20 20 20 2f |max_len,| /|
|00000bc0| 2a 20 53 74 72 69 6e 67 | 20 77 69 74 68 20 69 74 |* String| with it|
|00000bd0| 73 20 6d 61 78 2e 20 6c | 65 6e 2e 20 2a 2f 0a 20 |s max. l|en. */. |
|00000be0| 20 20 20 20 20 20 20 20 | 20 20 20 69 6e 74 20 2a | | int *|
|00000bf0| 66 6f 75 6e 64 29 20 20 | 20 20 20 20 20 20 2f 2a |found) | /*|
|00000c00| 20 4e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 72 20 | Number |of char |
|00000c10| 66 6f 75 6e 64 20 69 6e | 20 74 65 73 74 20 2a 2f |found in| test */|
|00000c20| 0a 7b 20 69 6e 74 20 63 | 5f 63 6f 75 6e 74 3d 30 |.{ int c|_count=0|
|00000c30| 2c 0a 20 20 20 20 20 20 | 74 5f 63 6f 75 6e 74 3d |,. |t_count=|
|00000c40| 30 3b 0a 20 20 63 68 61 | 72 20 72 65 61 64 3b 0a |0;. cha|r read;.|
|00000c50| 20 20 64 6f 20 7b 20 74 | 5f 63 6f 75 6e 74 3d 66 | do { t|_count=f|
|00000c60| 73 63 61 6e 66 28 66 6c | 65 2c 22 25 63 22 2c 26 |scanf(fl|e,"%c",&|
|00000c70| 72 65 61 64 29 3b 0a 20 | 20 20 20 20 20 20 69 66 |read);. | if|
|00000c80| 20 28 74 5f 63 6f 75 6e | 74 3e 30 29 20 20 20 20 | (t_coun|t>0) |
|00000c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ca0| 20 20 2f 2a 20 41 20 63 | 68 61 72 20 66 6f 75 6e | /* A c|har foun|
|00000cb0| 64 20 2a 2f 0a 20 20 20 | 20 20 20 20 20 20 20 7b |d */. | {|
|00000cc0| 20 2a 66 6f 75 6e 64 3d | 69 6e 28 72 65 61 64 2c | *found=|in(read,|
|00000cd0| 74 65 73 74 29 3b 20 20 | 20 20 20 20 20 20 20 2f |test); | /|
|00000ce0| 2a 20 43 68 65 63 6b 20 | 69 66 20 74 65 73 74 20 |* Check |if test |
|00000cf0| 63 68 61 72 20 66 6f 75 | 6e 64 2a 2f 0a 20 20 20 |char fou|nd*/. |
|00000d00| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 28 2a 66 | | if ((*f|
|00000d10| 6f 75 6e 64 3c 30 29 26 | 26 28 72 65 61 64 21 3d |ound<0)&|&(read!=|
|00000d20| 27 5c 6e 27 29 29 0a 09 | 20 20 20 20 20 20 20 7b |'\n'))..| {|
|00000d30| 20 64 61 74 61 5b 63 5f | 63 6f 75 6e 74 5d 3d 72 | data[c_|count]=r|
|00000d40| 65 61 64 3b 0a 09 09 20 | 2b 2b 63 5f 63 6f 75 6e |ead;... |++c_coun|
|00000d50| 74 3b 0a 09 20 20 20 20 | 20 20 20 7d 0a 20 20 20 |t;.. | }. |
|00000d60| 20 20 20 20 20 20 20 7d | 0a 20 20 20 20 20 20 20 | }|. |
|00000d70| 65 6c 73 65 20 2a 66 6f | 75 6e 64 3d 39 39 39 39 |else *fo|und=9999|
|00000d80| 3b 0a 20 20 20 20 20 7d | 20 77 68 69 6c 65 20 28 |;. }| while (|
|00000d90| 28 2a 66 6f 75 6e 64 3c | 30 29 26 26 28 63 5f 63 |(*found<|0)&&(c_c|
|00000da0| 6f 75 6e 74 3c 6d 61 78 | 5f 6c 65 6e 29 29 3b 0a |ount<max|_len));.|
|00000db0| 20 20 69 66 20 28 63 5f | 63 6f 75 6e 74 3e 3d 30 | if (c_|count>=0|
|00000dc0| 29 20 20 64 61 74 61 5b | 63 5f 63 6f 75 6e 74 5d |) data[|c_count]|
|00000dd0| 3d 27 5c 30 27 3b 20 20 | 20 20 20 20 20 2f 2a 20 |='\0'; | /* |
|00000de0| 50 75 74 20 6f 6e 20 6c | 61 73 74 20 63 68 61 72 |Put on l|ast char|
|00000df0| 20 2a 2f 0a 20 20 72 65 | 74 75 72 6e 20 28 63 5f | */. re|turn (c_|
|00000e00| 63 6f 75 6e 74 29 3b 0a | 7d 0a 0a 2f 2a 2a 2a 2a |count);.|}../****|
|00000e10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e50| 2a 2a 2f 0a 2f 2a 20 52 | 65 61 64 20 63 68 61 72 |**/./* R|ead char|
|00000e60| 73 20 69 6e 74 6f 20 64 | 61 74 61 20 75 6e 74 69 |s into d|ata unti|
|00000e70| 6c 20 6f 6e 65 20 6f 66 | 20 63 68 61 72 73 20 69 |l one of| chars i|
|00000e80| 6e 20 74 65 73 74 20 69 | 73 20 6d 65 74 2e 20 52 |n test i|s met. R|
|00000e90| 65 74 75 72 6e 73 20 6c | 61 73 74 0a 20 2a 20 66 |eturns l|ast. * f|
|00000ea0| 73 63 61 6e 66 20 76 61 | 6c 75 65 20 61 6e 64 20 |scanf va|lue and |
|00000eb0| 6c 61 73 74 20 69 6e 74 | 20 63 6f 6e 74 61 69 6e |last int| contain|
|00000ec0| 73 20 6c 61 73 74 20 69 | 6e 64 65 78 20 6f 66 20 |s last i|ndex of |
|00000ed0| 74 65 73 74 20 63 68 61 | 72 20 66 6f 75 6e 64 2e |test cha|r found.|
|00000ee0| 0a 20 2a 20 42 6f 74 68 | 20 73 68 6f 75 6c 64 20 |. * Both| should |
|00000ef0| 62 65 20 30 20 69 66 20 | 65 72 72 6f 72 20 6f 63 |be 0 if |error oc|
|00000f00| 63 75 72 65 64 0a 2a 2f | 0a 2f 2a 20 54 65 73 74 |cured.*/|./* Test|
|00000f10| 65 64 20 4f 4b 20 2a 2f | 0a 69 6e 74 20 73 72 65 |ed OK */|.int sre|
|00000f20| 61 64 5f 74 6f 28 63 68 | 61 72 20 73 74 72 5b 5d |ad_to(ch|ar str[]|
|00000f30| 2c 20 20 20 20 20 20 20 | 2f 2a 53 74 72 69 6e 67 |, |/*String|
|00000f40| 20 74 6f 20 62 65 20 72 | 65 61 64 20 2a 2f 0a 09 | to be r|ead */..|
|00000f50| 20 20 20 20 63 68 61 72 | 20 74 65 73 74 5b 5d 2c | char| test[],|
|00000f60| 20 20 20 20 20 20 20 2f | 2a 20 54 65 73 74 20 63 | /|* Test c|
|00000f70| 68 61 72 73 20 2a 2f 0a | 09 20 20 20 20 63 68 61 |hars */.|. cha|
|00000f80| 72 20 64 61 74 61 5b 5d | 2c 20 20 20 20 20 20 20 |r data[]|, |
|00000f90| 2f 2a 20 52 65 74 75 72 | 6e 20 73 74 72 69 6e 67 |/* Retur|n string|
|00000fa0| 20 2a 2f 0a 20 20 20 20 | 20 20 63 6f 6e 73 74 20 | */. | const |
|00000fb0| 69 6e 74 20 6d 61 78 5f | 6c 65 6e 2c 20 20 20 20 |int max_|len, |
|00000fc0| 20 20 20 2f 2a 20 53 74 | 72 69 6e 67 20 77 69 74 | /* St|ring wit|
|00000fd0| 68 20 69 74 73 20 6d 61 | 78 2e 20 6c 65 6e 2e 20 |h its ma|x. len. |
|00000fe0| 2a 2f 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |*/. | i|
|00000ff0| 6e 74 20 2a 66 6f 75 6e | 64 29 20 20 20 20 20 20 |nt *foun|d) |
|00001000| 20 20 2f 2a 20 4e 75 6d | 62 65 72 20 6f 66 20 63 | /* Num|ber of c|
|00001010| 68 61 72 20 66 6f 75 6e | 64 20 69 6e 20 74 65 73 |har foun|d in tes|
|00001020| 74 20 2a 2f 0a 7b 20 69 | 6e 74 20 63 5f 63 6f 75 |t */.{ i|nt c_cou|
|00001030| 6e 74 3d 30 2c 0a 20 20 | 20 20 20 20 74 5f 63 6f |nt=0,. | t_co|
|00001040| 75 6e 74 3d 30 3b 0a 20 | 20 63 68 61 72 20 72 65 |unt=0;. | char re|
|00001050| 61 64 3b 0a 20 20 64 6f | 20 7b 20 72 65 61 64 3d |ad;. do| { read=|
|00001060| 73 74 72 5b 63 5f 63 6f | 75 6e 74 5d 3b 0a 20 20 |str[c_co|unt];. |
|00001070| 20 20 20 20 20 2a 66 6f | 75 6e 64 3d 69 6e 28 72 | *fo|und=in(r|
|00001080| 65 61 64 2c 74 65 73 74 | 29 3b 20 20 20 20 20 20 |ead,test|); |
|00001090| 20 20 20 2f 2a 20 43 68 | 65 63 6b 20 69 66 20 74 | /* Ch|eck if t|
|000010a0| 65 73 74 20 63 68 61 72 | 20 66 6f 75 6e 64 2a 2f |est char| found*/|
|000010b0| 0a 20 20 20 20 20 20 20 | 69 66 20 28 2a 66 6f 75 |. |if (*fou|
|000010c0| 6e 64 3c 30 29 0a 20 20 | 20 20 20 20 20 20 64 61 |nd<0). | da|
|000010d0| 74 61 5b 63 5f 63 6f 75 | 6e 74 2b 2b 5d 3d 72 65 |ta[c_cou|nt++]=re|
|000010e0| 61 64 3b 0a 20 20 20 20 | 20 7d 20 77 68 69 6c 65 |ad;. | } while|
|000010f0| 20 28 28 2a 66 6f 75 6e | 64 3c 30 29 26 26 28 63 | ((*foun|d<0)&&(c|
|00001100| 5f 63 6f 75 6e 74 3c 6d | 61 78 5f 6c 65 6e 29 29 |_count<m|ax_len))|
|00001110| 3b 0a 20 20 69 66 20 28 | 63 5f 63 6f 75 6e 74 3e |;. if (|c_count>|
|00001120| 3d 30 29 20 20 64 61 74 | 61 5b 63 5f 63 6f 75 6e |=0) dat|a[c_coun|
|00001130| 74 5d 3d 27 5c 30 27 3b | 20 20 20 20 20 20 20 2f |t]='\0';| /|
|00001140| 2a 20 50 75 74 20 6f 6e | 20 6c 61 73 74 20 63 68 |* Put on| last ch|
|00001150| 61 72 20 2a 2f 0a 20 20 | 72 65 74 75 72 6e 20 28 |ar */. |return (|
|00001160| 63 5f 63 6f 75 6e 74 29 | 3b 0a 7d 0a 0a 0a 2f 2a |c_count)|;.}.../*|
|00001170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001180| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000011a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000011b0| 2a 2a 2a 2a 2a 2f 0a 2f | 2a 20 4b 65 65 70 20 6f |*****/./|* Keep o|
|000011c0| 6e 6c 79 20 63 68 61 72 | 73 20 70 72 65 73 65 6e |nly char|s presen|
|000011d0| 74 20 69 6e 20 69 6e 5f | 64 61 74 61 20 63 6f 72 |t in in_|data cor|
|000011e0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 74 6f 20 74 68 |respondi|ng to th|
|000011f0| 6f 73 65 20 69 6e 20 6b | 65 65 70 2a 2f 0a 2f 2a |ose in k|eep*/./*|
|00001200| 20 54 65 73 74 65 64 20 | 4f 4b 20 2a 2f 0a 69 6e | Tested |OK */.in|
|00001210| 74 20 69 6e 63 6c 75 64 | 65 28 63 68 61 72 20 69 |t includ|e(char i|
|00001220| 6e 5f 64 61 74 61 5b 5d | 2c 20 20 20 20 20 20 20 |n_data[]|, |
|00001230| 20 2f 2a 20 49 6e 70 75 | 74 20 73 74 72 69 6e 67 | /* Inpu|t string|
|00001240| 20 20 2a 2f 0a 09 20 20 | 20 20 63 68 61 72 20 6f | */.. | char o|
|00001250| 75 74 5f 64 61 74 61 5b | 5d 2c 09 20 20 2f 2a 20 |ut_data[|],. /* |
|00001260| 4f 75 74 70 75 74 20 73 | 74 72 69 6e 67 20 2a 2f |Output s|tring */|
|00001270| 0a 09 20 20 20 20 63 68 | 61 72 20 6b 65 65 70 5b |.. ch|ar keep[|
|00001280| 5d 29 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 20 |]) | /* |
|00001290| 53 74 72 69 6e 67 20 6f | 66 20 63 68 61 72 61 63 |String o|f charac|
|000012a0| 74 65 72 73 20 74 6f 20 | 6b 65 65 70 20 2a 2f 0a |ters to |keep */.|
|000012b0| 7b 20 69 6e 74 20 69 6e | 5f 6c 65 6e 2c 6f 5f 6c |{ int in|_len,o_l|
|000012c0| 65 6e 2c 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |en, | |
|000012d0| 20 20 2f 2a 20 4c 65 6e | 67 74 68 20 6f 66 20 74 | /* Len|gth of t|
|000012e0| 68 65 73 65 20 73 74 72 | 69 6e 67 73 20 2a 2f 0a |hese str|ings */.|
|000012f0| 20 20 20 20 20 20 69 5f | 63 6f 75 6e 74 2c 6b 5f | i_|count,k_|
|00001300| 63 6f 75 6e 74 2c 6f 5f | 63 6f 75 6e 74 3d 30 3b |count,o_|count=0;|
|00001310| 0a 20 20 69 6e 5f 6c 65 | 6e 3d 28 69 6e 74 29 73 |. in_le|n=(int)s|
|00001320| 74 72 6c 65 6e 28 69 6e | 5f 64 61 74 61 29 3b 0a |trlen(in|_data);.|
|00001330| 20 20 66 6f 72 20 28 69 | 5f 63 6f 75 6e 74 3d 30 | for (i|_count=0|
|00001340| 3b 69 5f 63 6f 75 6e 74 | 3c 69 6e 5f 6c 65 6e 3b |;i_count|<in_len;|
|00001350| 2b 2b 69 5f 63 6f 75 6e | 74 29 20 20 2f 2a 47 6f |++i_coun|t) /*Go|
|00001360| 20 74 68 72 6f 75 67 68 | 20 77 68 6f 6c 65 20 69 | through| whole i|
|00001370| 6e 70 2e 20 73 74 72 69 | 6e 67 2a 2f 0a 20 20 20 |np. stri|ng*/. |
|00001380| 20 20 20 7b 20 69 66 20 | 28 69 6e 28 69 6e 5f 64 | { if |(in(in_d|
|00001390| 61 74 61 5b 69 5f 63 6f | 75 6e 74 5d 2c 6b 65 65 |ata[i_co|unt],kee|
|000013a0| 70 29 3e 3d 30 29 0a 20 | 20 20 20 20 20 20 20 20 |p)>=0). | |
|000013b0| 20 20 20 7b 20 6f 75 74 | 5f 64 61 74 61 5b 6f 5f | { out|_data[o_|
|000013c0| 63 6f 75 6e 74 5d 3d 69 | 6e 5f 64 61 74 61 5b 69 |count]=i|n_data[i|
|000013d0| 5f 63 6f 75 6e 74 5d 3b | 0a 20 20 20 20 20 20 20 |_count];|. |
|000013e0| 20 20 20 20 20 20 20 20 | 20 20 20 2b 2b 6f 5f 63 | | ++o_c|
|000013f0| 6f 75 6e 74 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |ount;. | |
|00001400| 20 20 7d 0a 20 20 20 20 | 20 20 7d 0a 20 20 6f 75 | }. | }. ou|
|00001410| 74 5f 64 61 74 61 5b 6f | 5f 63 6f 75 6e 74 5d 3d |t_data[o|_count]=|
|00001420| 27 5c 30 27 3b 20 20 20 | 20 20 20 20 20 20 20 20 |'\0'; | |
|00001430| 20 20 20 20 20 20 20 2f | 2a 20 50 75 74 20 6f 6e | /|* Put on|
|00001440| 20 6c 61 73 74 20 63 68 | 61 72 20 2a 2f 0a 20 20 | last ch|ar */. |
|00001450| 72 65 74 75 72 6e 28 6f | 5f 63 6f 75 6e 74 29 3b |return(o|_count);|
|00001460| 0a 7d 0a 0a 0a 69 6e 74 | 20 72 65 61 64 5f 6f 6e |.}...int| read_on|
|00001470| 65 28 63 68 61 72 20 6e | 61 6d 65 5b 5d 2c 69 6e |e(char n|ame[],in|
|00001480| 74 20 6c 69 6e 65 31 2c | 0a 20 20 20 20 20 20 20 |t line1,|. |
|00001490| 20 20 20 20 20 20 20 20 | 69 6e 74 20 78 63 6f 6c | |int xcol|
|000014a0| 2c 64 6f 75 62 6c 65 20 | 2a 78 29 0a 7b 20 69 6e |,double |*x).{ in|
|000014b0| 74 20 69 2c 6a 2c 74 3b | 0a 20 20 63 68 61 72 20 |t i,j,t;|. char |
|000014c0| 65 6f 6c 5b 32 5d 3d 7b | 22 20 22 7d 3b 0a 20 20 |eol[2]={|" "};. |
|000014d0| 63 68 61 72 20 69 6e 72 | 65 61 64 5b 31 36 30 5d |char inr|ead[160]|
|000014e0| 3b 0a 20 20 64 6f 75 62 | 6c 65 20 67 3b 0a 20 20 |;. doub|le g;. |
|000014f0| 46 49 4c 45 20 2a 66 6c | 65 3b 0a 0a 20 20 66 6c |FILE *fl|e;.. fl|
|00001500| 65 3d 66 6f 70 65 6e 28 | 6e 61 6d 65 2c 22 72 22 |e=fopen(|name,"r"|
|00001510| 29 3b 0a 20 20 65 6f 6c | 5b 30 5d 3d 27 5c 6e 27 |);. eol|[0]='\n'|
|00001520| 3b 0a 20 20 66 6f 72 20 | 28 69 3d 30 3b 69 3c 6c |;. for |(i=0;i<l|
|00001530| 69 6e 65 31 2d 31 3b 2b | 2b 69 29 20 20 20 20 2f |ine1-1;+|+i) /|
|00001540| 2a 20 4c 65 65 73 20 74 | 6f 74 20 62 79 20 62 65 |* Lees t|ot by be|
|00001550| 67 69 6e 6c 79 6e 20 2a | 2f 0a 20 20 20 20 20 61 |ginlyn *|/. a|
|00001560| 64 76 61 6e 63 65 5f 74 | 6f 28 66 6c 65 2c 65 6f |dvance_t|o(fle,eo|
|00001570| 6c 2c 26 6a 29 3b 0a 20 | 20 20 20 20 66 6f 72 20 |l,&j);. | for |
|00001580| 28 69 3d 31 3b 69 3c 3d | 78 63 6f 6c 3b 2b 2b 69 |(i=1;i<=|xcol;++i|
|00001590| 29 0a 20 20 20 20 20 20 | 20 7b 20 61 64 76 61 6e |). | { advan|
|000015a0| 63 65 5f 74 6f 28 66 6c | 65 2c 22 3d 22 2c 26 6a |ce_to(fl|e,"=",&j|
|000015b0| 29 3b 0a 20 20 20 20 20 | 20 20 7d 0a 20 20 20 20 |);. | }. |
|000015c0| 20 20 20 66 73 63 61 6e | 66 28 66 6c 65 2c 22 25 | fscan|f(fle,"%|
|000015d0| 6c 66 22 2c 78 29 3b 0a | 20 20 72 65 74 75 72 6e |lf",x);.| return|
|000015e0| 28 30 29 3b 0a 20 20 66 | 63 6c 6f 73 65 28 66 6c |(0);. f|close(fl|
|000015f0| 65 29 3b 0a 20 7d 0a 0a | 0a 76 6f 69 64 20 77 72 |e);. }..|.void wr|
|00001600| 69 74 65 5f 64 61 74 61 | 28 63 68 61 72 20 66 6e |ite_data|(char fn|
|00001610| 61 6d 65 5b 5d 2c 64 6f | 75 62 6c 65 20 78 5b 5d |ame[],do|uble x[]|
|00001620| 2c 64 6f 75 62 6c 65 20 | 79 5b 5d 2c 69 6e 74 20 |,double |y[],int |
|00001630| 6e 29 0a 7b 20 46 49 4c | 45 20 2a 66 6c 65 3b 0a |n).{ FIL|E *fle;.|
|00001640| 20 20 69 6e 74 20 69 3b | 0a 20 20 63 68 61 72 20 | int i;|. char |
|00001650| 65 72 72 6f 72 5b 31 30 | 30 5d 3b 0a 20 20 66 6c |error[10|0];. fl|
|00001660| 65 3d 66 6f 70 65 6e 28 | 66 6e 61 6d 65 2c 22 77 |e=fopen(|fname,"w|
|00001670| 22 29 3b 0a 20 20 69 66 | 20 28 66 6c 65 3d 3d 4e |");. if| (fle==N|
|00001680| 55 4c 4c 29 0a 20 20 20 | 7b 20 73 73 63 61 6e 66 |ULL). |{ sscanf|
|00001690| 28 65 72 72 6f 72 2c 22 | 55 6e 61 62 6c 65 20 74 |(error,"|Unable t|
|000016a0| 6f 20 6f 70 65 6e 20 66 | 69 6c 65 20 27 25 73 27 |o open f|ile '%s'|
|000016b0| 21 22 29 3b 0a 20 20 20 | 20 20 59 70 75 74 73 45 |!");. | YputsE|
|000016c0| 72 72 28 65 72 72 6f 72 | 29 3b 0a 20 20 20 7d 0a |rr(error|);. }.|
|000016d0| 20 20 65 6c 73 65 20 0a | 20 20 7b 20 66 6f 72 20 | else .| { for |
|000016e0| 28 69 3d 30 3b 69 3c 6e | 3b 69 2b 2b 29 0a 20 20 |(i=0;i<n|;i++). |
|000016f0| 20 20 66 70 72 69 6e 74 | 66 28 66 6c 65 2c 22 25 | fprint|f(fle,"%|
|00001700| 32 2e 35 65 20 25 32 2e | 35 65 5c 6e 22 2c 78 5b |2.5e %2.|5e\n",x[|
|00001710| 69 5d 2c 79 5b 69 5d 2f | 33 2e 32 29 3b 0a 20 20 |i],y[i]/|3.2);. |
|00001720| 20 20 66 70 72 69 6e 74 | 66 28 66 6c 65 2c 22 2e | fprint|f(fle,".|
|00001730| 2e 5c 6e 22 29 3b 0a 20 | 20 20 20 66 63 6c 6f 73 |.\n");. | fclos|
|00001740| 65 28 66 6c 65 29 3b 0a | 20 20 7d 0a 7d 0a 0a 69 |e(fle);.| }.}..i|
|00001750| 6e 74 20 72 65 61 64 5f | 62 6c 6f 63 6b 28 63 68 |nt read_|block(ch|
|00001760| 61 72 20 66 6e 61 6d 65 | 5b 5d 2c 20 69 6e 74 20 |ar fname|[], int |
|00001770| 62 6c 6f 63 6b 2c 20 63 | 68 61 72 20 62 6c 6f 63 |block, c|har bloc|
|00001780| 6b 73 74 61 72 74 5b 5d | 2c 0a 20 20 20 20 20 20 |kstart[]|,. |
|00001790| 20 20 20 20 20 20 20 20 | 20 69 6e 74 20 78 63 6f | | int xco|
|000017a0| 6c 2c 64 6f 75 62 6c 65 | 20 78 5b 5d 2c 20 69 6e |l,double| x[], in|
|000017b0| 74 20 78 6e 75 6d 29 0a | 7b 20 69 6e 74 20 69 2c |t xnum).|{ int i,|
|000017c0| 6a 2c 74 3b 0a 20 20 63 | 68 61 72 20 65 6f 6c 5b |j,t;. c|har eol[|
|000017d0| 32 5d 3d 7b 22 20 22 7d | 2c 20 74 6d 70 73 74 72 |2]={" "}|, tmpstr|
|000017e0| 5b 32 5d 3d 7b 22 20 22 | 7d 20 2c 76 61 6c 75 65 |[2]={" "|} ,value|
|000017f0| 73 74 72 5b 31 30 30 5d | 3b 0a 20 20 63 68 61 72 |str[100]|;. char|
|00001800| 20 69 6e 72 65 61 64 5b | 31 36 30 5d 2c 72 63 68 | inread[|160],rch|
|00001810| 61 72 2c 2a 73 70 74 72 | 3b 0a 20 20 64 6f 75 62 |ar,*sptr|;. doub|
|00001820| 6c 65 20 67 3b 0a 20 20 | 69 6e 74 20 6c 6c 65 6e |le g;. |int llen|
|00001830| 31 3d 30 2c 6c 6c 65 6e | 32 3d 30 2c 6c 65 6e 2c |1=0,llen|2=0,len,|
|00001840| 6c 69 6e 65 2c 62 6c 6f | 63 6b 63 6f 75 6e 74 2c |line,blo|ckcount,|
|00001850| 65 6e 64 6f 66 62 6c 6f | 63 6b 3d 30 2c 69 6e 6f |endofblo|ck=0,ino|
|00001860| 66 66 3d 30 2c 63 6f 75 | 6e 74 3b 0a 20 20 46 49 |ff=0,cou|nt;. FI|
|00001870| 4c 45 20 2a 66 6c 65 3b | 0a 0a 20 63 6f 75 6e 74 |LE *fle;|.. count|
|00001880| 3d 30 3b 0a 20 66 6c 65 | 3d 66 6f 70 65 6e 28 66 |=0;. fle|=fopen(f|
|00001890| 6e 61 6d 65 2c 22 72 22 | 29 3b 0a 20 69 66 28 66 |name,"r"|);. if(f|
|000018a0| 6c 65 21 3d 4e 55 4c 4c | 29 0a 20 7b 65 6f 6c 5b |le!=NULL|). {eol[|
|000018b0| 30 5d 3d 27 5c 6e 27 3b | 0a 20 20 74 6d 70 73 74 |0]='\n';|. tmpst|
|000018c0| 72 5b 30 5d 3d 62 6c 6f | 63 6b 73 74 61 72 74 5b |r[0]=blo|ckstart[|
|000018d0| 30 5d 3b 0a 20 20 6c 65 | 6e 3d 73 74 72 6c 65 6e |0];. le|n=strlen|
|000018e0| 28 62 6c 6f 63 6b 73 74 | 61 72 74 29 3b 0a 20 20 |(blockst|art);. |
|000018f0| 62 6c 6f 63 6b 63 6f 75 | 6e 74 3d 30 3b 0a 20 20 |blockcou|nt=0;. |
|00001900| 64 6f 0a 20 20 20 7b 20 | 69 6e 72 65 61 64 5b 30 |do. { |inread[0|
|00001910| 5d 3d 62 6c 6f 63 6b 73 | 74 61 72 74 5b 30 5d 3b |]=blocks|tart[0];|
|00001920| 0a 20 20 20 20 69 6e 72 | 65 61 64 5b 31 5d 3d 27 |. inr|ead[1]='|
|00001930| 5c 30 27 3b 0a 20 20 20 | 20 69 3d 30 3b 0a 20 20 |\0';. | i=0;. |
|00001940| 20 20 77 68 69 6c 65 20 | 28 69 3c 3d 6c 65 6e 2d | while |(i<=len-|
|00001950| 31 29 0a 20 20 20 20 20 | 20 7b 20 74 3d 66 73 63 |1). | { t=fsc|
|00001960| 61 6e 66 28 66 6c 65 2c | 22 25 63 22 2c 26 72 63 |anf(fle,|"%c",&rc|
|00001970| 68 61 72 29 3b 0a 20 20 | 20 20 20 20 20 20 69 66 |har);. | if|
|00001980| 20 28 74 3c 30 29 20 62 | 72 65 61 6b 3b 0a 20 20 | (t<0) b|reak;. |
|00001990| 20 20 20 20 20 20 69 66 | 20 28 72 63 68 61 72 3d | if| (rchar=|
|000019a0| 3d 62 6c 6f 63 6b 73 74 | 61 72 74 5b 69 5d 29 20 |=blockst|art[i]) |
|000019b0| 69 2b 2b 3b 0a 20 20 20 | 20 20 20 20 20 69 66 20 |i++;. | if |
|000019c0| 28 72 63 68 61 72 3d 3d | 62 6c 6f 63 6b 73 74 61 |(rchar==|blocksta|
|000019d0| 72 74 5b 30 5d 20 26 26 | 20 62 6c 6f 63 6b 73 74 |rt[0] &&| blockst|
|000019e0| 61 72 74 5b 69 5d 21 3d | 62 6c 6f 63 6b 73 74 61 |art[i]!=|blocksta|
|000019f0| 72 74 5b 30 5d 29 20 69 | 3d 31 3b 0a 20 20 20 20 |rt[0]) i|=1;. |
|00001a00| 20 20 7d 0a 20 20 20 20 | 69 66 20 28 69 3d 3d 6c | }. |if (i==l|
|00001a10| 65 6e 29 20 62 6c 6f 63 | 6b 63 6f 75 6e 74 2b 2b |en) bloc|kcount++|
|00001a20| 3b 0a 20 20 20 20 7d 20 | 77 68 69 6c 65 20 28 62 |;. } |while (b|
|00001a30| 6c 6f 63 6b 63 6f 75 6e | 74 3c 62 6c 6f 63 6b 20 |lockcoun|t<block |
|00001a40| 26 26 74 3e 30 29 3b 0a | 20 20 20 69 66 20 28 74 |&&t>0);.| if (t|
|00001a50| 3e 30 29 0a 20 20 20 20 | 7b 20 61 64 76 61 6e 63 |>0). |{ advanc|
|00001a60| 65 5f 74 6f 28 66 6c 65 | 2c 65 6f 6c 2c 26 6a 29 |e_to(fle|,eol,&j)|
|00001a70| 3b 0a 20 20 20 74 3d 31 | 3b 0a 20 20 20 64 6f 0a |;. t=1|;. do.|
|00001a80| 20 20 20 7b 6c 6c 65 6e | 31 3d 6c 6c 65 6e 32 3b | {llen|1=llen2;|
|00001a90| 0a 20 20 20 20 6c 6c 65 | 6e 32 3d 72 65 61 64 5f |. lle|n2=read_|
|00001aa0| 74 6f 28 66 6c 65 2c 65 | 6f 6c 2c 69 6e 72 65 61 |to(fle,e|ol,inrea|
|00001ab0| 64 2c 31 36 30 2c 26 6a | 29 3b 0a 20 20 20 69 66 |d,160,&j|);. if|
|00001ac0| 20 28 74 3d 3d 31 20 7c | 7c 20 6c 6c 65 6e 32 3e | (t==1 ||| llen2>|
|00001ad0| 3d 6c 6c 65 6e 31 2f 32 | 29 20 0a 20 20 20 7b 74 |=llen1/2|) . {t|
|00001ae0| 2b 2b 3b 0a 20 20 20 20 | 73 70 74 72 3d 69 6e 72 |++;. |sptr=inr|
|00001af0| 65 61 64 3b 0a 20 20 20 | 20 20 20 69 3d 31 3b 0a |ead;. | i=1;.|
|00001b00| 20 20 20 20 20 20 77 68 | 69 6c 65 20 28 69 3c 78 | wh|ile (i<x|
|00001b10| 63 6f 6c 29 0a 20 20 20 | 20 20 20 20 7b 20 20 73 |col). | { s|
|00001b20| 70 74 72 2b 3d 73 61 64 | 76 61 6e 63 65 5f 74 6f |ptr+=sad|vance_to|
|00001b30| 28 73 70 74 72 2c 22 2a | 2e 30 31 32 33 34 35 36 |(sptr,"*|.0123456|
|00001b40| 37 38 39 22 2c 26 6a 29 | 3b 0a 20 20 20 20 20 20 |789",&j)|;. |
|00001b50| 20 20 20 20 73 70 74 72 | 2b 3d 73 61 64 76 61 6e | sptr|+=sadvan|
|00001b60| 63 65 5f 74 6f 28 73 70 | 74 72 2c 22 20 22 2c 26 |ce_to(sp|tr," ",&|
|00001b70| 6a 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 69 2b |j);. | i+|
|00001b80| 2b 3b 0a 20 20 20 20 20 | 20 20 7d 0a 20 20 20 20 |+;. | }. |
|00001b90| 20 20 73 70 74 72 2b 3d | 73 61 64 76 61 6e 63 65 | sptr+=|sadvance|
|00001ba0| 5f 74 6f 28 73 70 74 72 | 2c 22 2a 2e 30 31 32 33 |_to(sptr|,"*.0123|
|00001bb0| 34 35 36 37 38 39 22 2c | 26 6a 29 3b 0a 20 20 20 |456789",|&j);. |
|00001bc0| 20 20 20 73 70 74 72 2d | 3d 31 3b 0a 20 20 20 20 | sptr-|=1;. |
|00001bd0| 20 20 73 70 74 72 2b 3d | 73 72 65 61 64 5f 74 6f | sptr+=|sread_to|
|00001be0| 28 73 70 74 72 2c 22 20 | 22 2c 76 61 6c 75 65 73 |(sptr," |",values|
|00001bf0| 74 72 2c 31 30 30 2c 26 | 6a 29 3b 0a 20 20 20 20 |tr,100,&|j);. |
|00001c00| 20 20 63 6f 75 6e 74 2b | 3d 73 73 63 61 6e 66 28 | count+|=sscanf(|
|00001c10| 76 61 6c 75 65 73 74 72 | 2c 22 25 6c 66 22 2c 26 |valuestr|,"%lf",&|
|00001c20| 78 5b 63 6f 75 6e 74 5d | 29 3b 20 2f 2a 20 6c 65 |x[count]|); /* le|
|00001c30| 65 73 20 78 20 64 61 74 | 61 20 2a 2f 0a 20 20 20 |es x dat|a */. |
|00001c40| 20 20 20 69 66 20 28 63 | 6f 75 6e 74 3d 3d 78 6e | if (c|ount==xn|
|00001c50| 75 6d 29 20 65 78 69 74 | 3b 0a 20 20 20 7d 20 65 |um) exit|;. } e|
|00001c60| 6c 73 65 20 65 6e 64 6f | 66 62 6c 6f 63 6b 3d 31 |lse endo|fblock=1|
|00001c70| 3b 0a 20 20 7d 20 77 68 | 69 6c 65 20 28 21 65 6e |;. } wh|ile (!en|
|00001c80| 64 6f 66 62 6c 6f 63 6b | 29 3b 0a 20 7d 20 2f 2a |dofblock|);. } /*|
|00001c90| 69 66 20 28 74 3e 30 29 | 2a 2f 0a 7d 20 2f 2a 69 |if (t>0)|*/.} /*i|
|00001ca0| 66 20 66 6c 65 21 3d 4e | 55 4c 4c 2a 2f 0a 20 20 |f fle!=N|ULL*/. |
|00001cb0| 72 65 74 75 72 6e 28 63 | 6f 75 6e 74 29 3b 0a 7d |return(c|ount);.}|
|00001cc0| 0a 0a 0a 69 6e 74 20 72 | 65 61 64 5f 64 61 74 61 |...int r|ead_data|
|00001cd0| 28 63 68 61 72 20 66 6e | 61 6d 65 5b 5d 2c 69 6e |(char fn|ame[],in|
|00001ce0| 74 20 6c 69 6e 65 31 2c | 69 6e 74 20 6c 69 6e 65 |t line1,|int line|
|00001cf0| 32 2c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |2,. | |
|00001d00| 20 20 69 6e 74 20 78 63 | 6f 6c 2c 64 6f 75 62 6c | int xc|ol,doubl|
|00001d10| 65 20 78 5b 5d 2c 69 6e | 74 20 78 6e 75 6d 29 0a |e x[],in|t xnum).|
|00001d20| 7b 20 69 6e 74 20 69 2c | 6a 2c 74 2c 63 6f 75 6e |{ int i,|j,t,coun|
|00001d30| 74 2c 79 3b 0a 20 20 63 | 68 61 72 20 65 6f 6c 5b |t,y;. c|har eol[|
|00001d40| 32 5d 3d 7b 22 20 22 7d | 3b 0a 20 20 63 68 61 72 |2]={" "}|;. char|
|00001d50| 20 69 6e 72 65 61 64 5b | 31 36 30 5d 3b 0a 20 20 | inread[|160];. |
|00001d60| 64 6f 75 62 6c 65 20 67 | 3b 0a 20 20 46 49 4c 45 |double g|;. FILE|
|00001d70| 20 2a 66 6c 65 3b 0a 20 | 20 0a 20 20 63 6f 75 6e | *fle;. | . coun|
|00001d80| 74 3d 30 3b 0a 20 66 6c | 65 3d 66 6f 70 65 6e 28 |t=0;. fl|e=fopen(|
|00001d90| 66 6e 61 6d 65 2c 22 72 | 22 29 3b 0a 20 69 66 28 |fname,"r|");. if(|
|00001da0| 66 6c 65 21 3d 4e 55 4c | 4c 29 0a 20 7b 65 6f 6c |fle!=NUL|L). {eol|
|00001db0| 5b 30 5d 3d 27 5c 6e 27 | 3b 0a 20 6a 3d 30 3b 0a |[0]='\n'|;. j=0;.|
|00001dc0| 20 20 66 6f 72 20 28 69 | 3d 30 3b 28 69 3c 6c 69 | for (i|=0;(i<li|
|00001dd0| 6e 65 31 2d 31 29 26 26 | 20 28 6a 3d 3d 30 29 3b |ne1-1)&&| (j==0);|
|00001de0| 2b 2b 69 29 20 20 20 20 | 2f 2a 20 4c 65 65 73 20 |++i) |/* Lees |
|00001df0| 74 6f 74 20 62 79 20 62 | 65 67 69 6e 6c 79 6e 20 |tot by b|eginlyn |
|00001e00| 2a 2f 0a 20 20 20 20 20 | 61 64 76 61 6e 63 65 5f |*/. |advance_|
|00001e10| 74 6f 28 66 6c 65 2c 65 | 6f 6c 2c 26 6a 29 3b 0a |to(fle,e|ol,&j);.|
|00001e20| 20 20 69 66 20 28 6a 3d | 3d 30 29 0a 20 20 7b 20 | if (j=|=0). { |
|00001e30| 66 6f 72 20 28 74 3d 30 | 3b 74 3c 3d 6c 69 6e 65 |for (t=0|;t<=line|
|00001e40| 32 2d 6c 69 6e 65 31 3b | 2b 2b 74 29 0a 20 20 20 |2-line1;|++t). |
|00001e50| 20 7b 20 66 6f 72 20 28 | 69 3d 31 3b 69 3c 78 63 | { for (|i=1;i<xc|
|00001e60| 6f 6c 3b 2b 2b 69 29 0a | 20 20 20 20 20 20 20 7b |ol;++i).| {|
|00001e70| 20 61 64 76 61 6e 63 65 | 5f 74 6f 28 66 6c 65 2c | advance|_to(fle,|
|00001e80| 22 2e 2a 30 31 32 33 34 | 35 36 37 38 39 22 2c 26 |".*01234|56789",&|
|00001e90| 6a 29 3b 0a 20 20 20 20 | 20 20 20 20 20 61 64 76 |j);. | adv|
|00001ea0| 61 6e 63 65 5f 74 6f 28 | 66 6c 65 2c 22 20 22 2c |ance_to(|fle," ",|
|00001eb0| 26 6a 29 3b 0a 20 20 20 | 20 20 20 20 7d 0a 20 20 |&j);. | }. |
|00001ec0| 20 20 20 20 79 3d 66 73 | 63 61 6e 66 28 66 6c 65 | y=fs|canf(fle|
|00001ed0| 2c 22 25 6c 66 22 2c 26 | 78 5b 63 6f 75 6e 74 5d |,"%lf",&|x[count]|
|00001ee0| 29 3b 20 2f 2a 20 6c 65 | 65 73 20 78 20 64 61 74 |); /* le|es x dat|
|00001ef0| 61 20 2a 2f 0a 20 20 20 | 20 20 20 69 66 20 28 63 |a */. | if (c|
|00001f00| 6f 75 6e 74 3d 3d 78 6e | 75 6d 29 20 62 72 65 61 |ount==xn|um) brea|
|00001f10| 6b 3b 0a 20 20 20 20 20 | 20 69 66 20 28 79 3d 3d |k;. | if (y==|
|00001f20| 31 29 20 63 6f 75 6e 74 | 2b 2b 3b 0a 20 20 20 20 |1) count|++;. |
|00001f30| 20 20 61 64 76 61 6e 63 | 65 5f 74 6f 28 66 6c 65 | advanc|e_to(fle|
|00001f40| 2c 65 6f 6c 2c 26 6a 29 | 3b 0a 20 20 20 20 7d 20 |,eol,&j)|;. } |
|00001f50| 20 0a 20 20 7d 0a 20 20 | 72 65 74 75 72 6e 28 63 | . }. |return(c|
|00001f60| 6f 75 6e 74 29 3b 0a 20 | 7d 0a 7d 0a 0a 69 6e 74 |ount);. |}.}..int|
|00001f70| 20 72 65 61 64 5f 6d 61 | 74 72 69 78 28 63 68 61 | read_ma|trix(cha|
|00001f80| 72 20 66 6e 61 6d 65 5b | 5d 2c 69 6e 74 20 6c 69 |r fname[|],int li|
|00001f90| 6e 65 31 2c 69 6e 74 20 | 6c 69 6e 65 32 2c 0a 20 |ne1,int |line2,. |
|00001fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 6e | | in|
|00001fb0| 74 20 78 63 6f 6c 2c 64 | 6f 75 62 6c 65 20 2a 2a |t xcol,d|ouble **|
|00001fc0| 78 2c 69 6e 74 20 78 6e | 75 6d 29 0a 7b 20 69 6e |x,int xn|um).{ in|
|00001fd0| 74 20 69 2c 6a 2c 74 2c | 63 6f 75 6e 74 2c 79 3b |t i,j,t,|count,y;|
|00001fe0| 0a 20 20 63 68 61 72 20 | 65 6f 6c 5b 32 5d 3d 7b |. char |eol[2]={|
|00001ff0| 22 20 22 7d 3b 0a 20 20 | 63 68 61 72 20 69 6e 72 |" "};. |char inr|
|00002000| 65 61 64 5b 31 36 30 5d | 3b 0a 20 20 64 6f 75 62 |ead[160]|;. doub|
|00002010| 6c 65 20 67 3b 0a 20 20 | 46 49 4c 45 20 2a 66 6c |le g;. |FILE *fl|
|00002020| 65 3b 0a 20 20 0a 20 20 | 63 6f 75 6e 74 3d 30 3b |e;. . |count=0;|
|00002030| 0a 20 66 6c 65 3d 66 6f | 70 65 6e 28 66 6e 61 6d |. fle=fo|pen(fnam|
|00002040| 65 2c 22 72 22 29 3b 0a | 20 69 66 28 66 6c 65 21 |e,"r");.| if(fle!|
|00002050| 3d 4e 55 4c 4c 29 0a 20 | 7b 65 6f 6c 5b 30 5d 3d |=NULL). |{eol[0]=|
|00002060| 27 5c 6e 27 3b 0a 20 6a | 3d 30 3b 0a 20 20 66 6f |'\n';. j|=0;. fo|
|00002070| 72 20 28 69 3d 30 3b 28 | 69 3c 6c 69 6e 65 31 2d |r (i=0;(|i<line1-|
|00002080| 31 29 26 26 20 28 6a 3d | 3d 30 29 3b 2b 2b 69 29 |1)&& (j=|=0);++i)|
|00002090| 20 20 20 20 2f 2a 20 4c | 65 65 73 20 74 6f 74 20 | /* L|ees tot |
|000020a0| 62 79 20 62 65 67 69 6e | 6c 79 6e 20 2a 2f 0a 20 |by begin|lyn */. |
|000020b0| 20 20 20 20 61 64 76 61 | 6e 63 65 5f 74 6f 28 66 | adva|nce_to(f|
|000020c0| 6c 65 2c 65 6f 6c 2c 26 | 6a 29 3b 0a 20 20 69 66 |le,eol,&|j);. if|
|000020d0| 20 28 6a 3d 3d 30 29 0a | 20 20 7b 20 66 6f 72 20 | (j==0).| { for |
|000020e0| 28 74 3d 30 3b 74 3c 3d | 6c 69 6e 65 32 2d 6c 69 |(t=0;t<=|line2-li|
|000020f0| 6e 65 31 3b 2b 2b 74 29 | 0a 20 20 20 20 7b 20 66 |ne1;++t)|. { f|
|00002100| 6f 72 20 28 69 3d 31 3b | 69 3c 78 63 6f 6c 3b 2b |or (i=1;|i<xcol;+|
|00002110| 2b 69 29 0a 20 20 20 20 | 20 20 20 7b 20 61 64 76 |+i). | { adv|
|00002120| 61 6e 63 65 5f 74 6f 28 | 66 6c 65 2c 22 2a 30 31 |ance_to(|fle,"*01|
|00002130| 32 33 34 35 36 37 38 39 | 22 2c 26 6a 29 3b 0a 20 |23456789|",&j);. |
|00002140| 20 20 20 20 20 20 20 20 | 61 64 76 61 6e 63 65 5f | |advance_|
|00002150| 74 6f 28 66 6c 65 2c 22 | 20 22 2c 26 6a 29 3b 0a |to(fle,"| ",&j);.|
|00002160| 20 20 20 20 20 20 20 7d | 0a 20 20 20 20 20 20 66 | }|. f|
|00002170| 6f 72 20 28 69 3d 30 3b | 69 3c 78 6e 75 6d 3b 2b |or (i=0;|i<xnum;+|
|00002180| 2b 69 29 0a 20 20 20 20 | 20 20 20 20 79 3d 66 73 |+i). | y=fs|
|00002190| 63 61 6e 66 28 66 6c 65 | 2c 22 25 6c 66 22 2c 26 |canf(fle|,"%lf",&|
|000021a0| 78 5b 63 6f 75 6e 74 5d | 5b 69 5d 29 3b 20 2f 2a |x[count]|[i]); /*|
|000021b0| 20 6c 65 65 73 20 78 20 | 64 61 74 61 20 2a 2f 0a | lees x |data */.|
|000021c0| 20 20 20 20 20 20 69 66 | 20 28 79 3c 3d 30 29 20 | if| (y<=0) |
|000021d0| 62 72 65 61 6b 3b 0a 20 | 20 20 20 20 20 63 6f 75 |break;. | cou|
|000021e0| 6e 74 2b 2b 3b 0a 20 20 | 20 20 20 20 61 64 76 61 |nt++;. | adva|
|000021f0| 6e 63 65 5f 74 6f 28 66 | 6c 65 2c 65 6f 6c 2c 26 |nce_to(f|le,eol,&|
|00002200| 6a 29 3b 0a 20 20 20 20 | 7d 20 20 0a 20 20 7d 0a |j);. |} . }.|
|00002210| 20 20 72 65 74 75 72 6e | 28 63 6f 75 6e 74 29 3b | return|(count);|
|00002220| 0a 20 7d 0a 7d 0a 00 00 | 00 00 00 00 00 00 00 00 |. }.}...|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 79 70 6c 6f 74 2d 30 2e | 39 2f 4d 61 6b 65 66 69 |yplot-0.|9/Makefi|
|00002410| 6c 65 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |le......|........|
|00002420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 31 |....1006|44 . 1|
|00002470| 34 34 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |44 . 1|44 . |
|00002480| 20 20 36 34 31 32 34 20 | 20 36 31 35 35 31 32 37 | 64124 | 6155127|
|00002490| 34 36 37 20 20 31 33 30 | 37 37 00 20 30 00 00 00 |467 130|77. 0...|
|000024a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 75 73 74 61 72 20 20 | 00 63 6f 6e 72 61 64 00 |.ustar |.conrad.|
|00002510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 23 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |# ------|--------|
|00002610| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002620| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002630| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002640| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 23 0a |--------|-----.#.|
|00002650| 23 20 4d 61 6b 65 66 69 | 6c 65 20 74 65 6d 70 6c |# Makefi|le templ|
|00002660| 61 74 65 20 66 6f 72 20 | 61 20 59 6f 72 69 63 6b |ate for |a Yorick|
|00002670| 2d 62 61 73 65 64 20 63 | 6f 64 65 0a 23 0a 23 20 |-based c|ode.#.# |
|00002680| 24 49 64 3a 20 4d 61 6b | 65 74 6d 70 6c 2c 76 20 |$Id: Mak|etmpl,v |
|00002690| 31 2e 31 20 31 39 39 33 | 2f 30 38 2f 32 37 20 31 |1.1 1993|/08/27 1|
|000026a0| 38 3a 33 32 3a 30 39 20 | 6d 75 6e 72 6f 20 45 78 |8:32:09 |munro Ex|
|000026b0| 70 20 24 0a 23 0a 0a 23 | 20 59 6f 75 20 61 72 65 |p $.#..#| You are|
|000026c0| 20 74 72 79 69 6e 67 20 | 74 6f 20 62 75 69 6c 64 | trying |to build|
|000026d0| 20 61 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 59 6f | a versi|on of Yo|
|000026e0| 72 69 63 6b 20 77 68 69 | 63 68 20 69 6e 63 6c 75 |rick whi|ch inclu|
|000026f0| 64 65 73 20 79 6f 75 72 | 20 6f 77 6e 0a 23 20 63 |des your| own.# c|
|00002700| 6f 6d 70 69 6c 65 64 20 | 72 6f 75 74 69 6e 65 73 |ompiled |routines|
|00002710| 2c 20 77 68 69 63 68 20 | 79 6f 75 20 77 6f 75 6c |, which |you woul|
|00002720| 64 20 6c 69 6b 65 20 74 | 6f 20 63 61 6c 6c 20 66 |d like t|o call f|
|00002730| 72 6f 6d 20 74 68 65 20 | 59 6f 72 69 63 6b 0a 23 |rom the |Yorick.#|
|00002740| 20 69 6e 74 65 72 70 72 | 65 74 65 72 20 6a 75 73 | interpr|eter jus|
|00002750| 74 20 6c 69 6b 65 20 6f | 74 68 65 72 20 62 75 69 |t like o|ther bui|
|00002760| 6c 74 2d 69 6e 20 66 75 | 6e 63 74 69 6f 6e 73 2e |lt-in fu|nctions.|
|00002770| 20 20 28 49 66 20 79 6f | 75 20 61 72 65 20 74 72 | (If yo|u are tr|
|00002780| 79 69 6e 67 0a 23 20 74 | 6f 20 62 75 69 6c 64 20 |ying.# t|o build |
|00002790| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 76 65 72 |the orig|inal ver|
|000027a0| 73 69 6f 6e 20 6f 66 20 | 59 6f 72 69 63 6b 20 61 |sion of |Yorick a|
|000027b0| 74 20 79 6f 75 72 20 73 | 69 74 65 2c 20 73 74 6f |t your s|ite, sto|
|000027c0| 70 2e 20 20 59 6f 75 0a | 23 20 73 68 6f 75 6c 64 |p. You.|# should|
|000027d0| 20 62 65 20 72 65 61 64 | 69 6e 67 20 74 68 65 20 | be read|ing the |
|000027e0| 4d 61 6b 65 66 69 6c 65 | 2e 69 6e 2c 20 6e 6f 74 |Makefile|.in, not|
|000027f0| 20 74 68 69 73 20 4d 61 | 6b 65 74 6d 70 6c 2e 29 | this Ma|ketmpl.)|
|00002800| 0a 0a 23 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..# ----|--------|
|00002810| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002820| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002830| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002840| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00002850| 23 20 43 6f 6d 70 69 6c | 69 6e 67 20 61 6e 64 20 |# Compil|ing and |
|00002860| 4c 6f 61 64 69 6e 67 20 | 79 6f 75 72 20 53 70 65 |Loading |your Spe|
|00002870| 63 69 61 6c 20 56 65 72 | 73 69 6f 6e 20 6f 66 20 |cial Ver|sion of |
|00002880| 59 6f 72 69 63 6b 0a 23 | 20 2d 2d 2d 2d 2d 2d 2d |Yorick.#| -------|
|00002890| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000028a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000028b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 0a 23 |--------|-----..#|
|000028c0| 20 54 68 65 20 66 69 72 | 73 74 20 74 68 69 6e 67 | The fir|st thing|
|000028d0| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 20 64 6f 20 | you nee|d to do |
|000028e0| 69 73 20 74 6f 20 63 72 | 65 61 74 65 20 61 20 64 |is to cr|eate a d|
|000028f0| 69 72 65 63 74 6f 72 79 | 20 77 68 65 72 65 20 79 |irectory| where y|
|00002900| 6f 75 0a 23 20 63 61 6e | 20 62 75 69 6c 64 20 61 |ou.# can| build a|
|00002910| 6e 64 20 64 65 62 75 67 | 20 79 6f 75 72 20 73 70 |nd debug| your sp|
|00002920| 65 63 69 61 6c 20 76 65 | 72 73 69 6f 6e 20 6f 66 |ecial ve|rsion of|
|00002930| 20 59 6f 72 69 63 6b 2e | 20 20 49 27 6c 6c 20 63 | Yorick.| I'll c|
|00002940| 61 6c 6c 20 74 68 69 73 | 0a 23 20 64 69 72 65 63 |all this|.# direc|
|00002950| 74 6f 72 79 20 59 5f 42 | 55 49 4c 44 2e 20 20 42 |tory Y_B|UILD. B|
|00002960| 65 67 69 6e 20 62 79 20 | 63 6f 70 79 69 6e 67 20 |egin by |copying |
|00002970| 74 68 69 73 20 4d 61 6b | 65 74 6d 70 6c 20 66 69 |this Mak|etmpl fi|
|00002980| 6c 65 20 69 6e 74 6f 20 | 79 6f 75 72 0a 23 20 59 |le into |your.# Y|
|00002990| 5f 42 55 49 4c 44 20 64 | 69 72 65 63 74 6f 72 79 |_BUILD d|irectory|
|000029a0| 2e 20 20 43 68 61 6e 67 | 65 20 74 68 65 20 6e 61 |. Chang|e the na|
|000029b0| 6d 65 20 6f 66 20 4d 61 | 6b 65 74 6d 70 6c 20 74 |me of Ma|ketmpl t|
|000029c0| 6f 20 4d 61 6b 65 66 69 | 6c 65 2e 0a 23 20 4d 6f |o Makefi|le..# Mo|
|000029d0| 76 65 20 79 6f 75 72 20 | 73 6f 75 72 63 65 20 63 |ve your |source c|
|000029e0| 6f 64 65 20 69 6e 74 6f | 20 74 68 65 20 59 5f 42 |ode into| the Y_B|
|000029f0| 55 49 4c 44 20 64 69 72 | 65 63 74 6f 72 79 2c 20 |UILD dir|ectory, |
|00002a00| 69 66 20 69 74 27 73 20 | 6e 6f 74 20 74 68 65 72 |if it's |not ther|
|00002a10| 65 0a 23 20 61 6c 72 65 | 61 64 79 2e 20 20 59 6f |e.# alre|ady. Yo|
|00002a20| 75 20 73 68 6f 75 6c 64 | 20 6d 6f 76 65 20 61 6e |u should| move an|
|00002a30| 79 74 68 69 6e 67 20 6e | 6f 74 20 72 65 6c 61 74 |ything n|ot relat|
|00002a40| 65 64 20 74 6f 20 74 68 | 65 20 6f 6e 65 20 73 70 |ed to th|e one sp|
|00002a50| 65 63 69 61 6c 0a 23 20 | 59 6f 72 69 63 6b 20 76 |ecial.# |Yorick v|
|00002a60| 65 72 73 69 6f 6e 20 79 | 6f 75 20 61 72 65 20 74 |ersion y|ou are t|
|00002a70| 72 79 69 6e 67 20 74 6f | 20 63 72 65 61 74 65 20 |rying to| create |
|00002a80| 6f 75 74 20 6f 66 20 74 | 68 65 20 59 5f 42 55 49 |out of t|he Y_BUI|
|00002a90| 4c 44 20 64 69 72 65 63 | 74 6f 72 79 0a 23 20 69 |LD direc|tory.# i|
|00002aa0| 6e 20 6f 72 64 65 72 20 | 74 6f 20 61 76 6f 69 64 |n order |to avoid|
|00002ab0| 20 64 61 6d 61 67 69 6e | 67 20 69 74 2e 0a 0a 23 | damagin|g it...#|
|00002ac0| 20 54 68 69 73 20 4d 61 | 6b 65 66 69 6c 65 20 69 | This Ma|kefile i|
|00002ad0| 73 20 64 69 76 69 64 65 | 64 20 69 6e 74 6f 20 74 |s divide|d into t|
|00002ae0| 77 6f 20 73 65 63 74 69 | 6f 6e 73 3a 0a 23 20 20 |wo secti|ons:.# |
|00002af0| 20 28 31 29 20 41 20 63 | 6f 64 65 20 73 70 65 63 | (1) A c|ode spec|
|00002b00| 69 66 69 63 20 73 65 63 | 74 69 6f 6e 2c 20 77 68 |ific sec|tion, wh|
|00002b10| 69 63 68 20 64 65 73 63 | 72 69 62 65 73 20 68 6f |ich desc|ribes ho|
|00002b20| 77 20 74 6f 20 63 6f 6d | 70 69 6c 65 0a 23 20 20 |w to com|pile.# |
|00002b30| 20 20 20 20 20 74 68 65 | 20 6d 6f 64 75 6c 65 73 | the| modules|
|00002b40| 20 79 6f 75 20 61 72 65 | 20 74 72 79 69 6e 67 20 | you are| trying |
|00002b50| 74 6f 20 61 64 64 20 74 | 6f 20 59 6f 72 69 63 6b |to add t|o Yorick|
|00002b60| 2e 0a 23 20 20 20 20 20 | 20 20 4d 6f 64 69 66 79 |..# | Modify|
|00002b70| 20 74 68 69 73 20 73 65 | 63 74 69 6f 6e 20 74 6f | this se|ction to|
|00002b80| 20 72 65 66 6c 65 63 74 | 20 79 6f 75 72 20 63 6f | reflect| your co|
|00002b90| 64 65 2e 0a 23 20 20 20 | 28 32 29 20 41 20 73 69 |de..# |(2) A si|
|00002ba0| 74 65 20 73 70 65 63 69 | 66 69 63 20 73 65 63 74 |te speci|fic sect|
|00002bb0| 69 6f 6e 2c 20 77 68 69 | 63 68 20 70 61 72 61 6d |ion, whi|ch param|
|00002bc0| 65 74 72 69 7a 65 73 20 | 76 61 72 69 6f 75 73 0a |etrizes |various.|
|00002bd0| 23 20 20 20 20 20 20 20 | 63 6f 6d 70 69 6c 65 72 |# |compiler|
|00002be0| 20 73 77 69 74 63 68 65 | 73 20 61 6e 64 20 6f 70 | switche|s and op|
|00002bf0| 74 69 6f 6e 73 2c 20 61 | 6e 64 20 70 72 6f 76 69 |tions, a|nd provi|
|00002c00| 64 65 73 20 73 74 61 6e | 64 61 72 64 0a 23 20 20 |des stan|dard.# |
|00002c10| 20 20 20 20 20 6d 61 6b | 65 20 74 61 72 67 65 74 | mak|e target|
|00002c20| 73 20 66 6f 72 20 61 73 | 73 65 6d 62 6c 69 6e 67 |s for as|sembling|
|00002c30| 20 61 20 63 6f 6d 70 6c | 65 74 65 20 76 65 72 73 | a compl|ete vers|
|00002c40| 69 6f 6e 20 6f 66 20 59 | 6f 72 69 63 6b 2e 0a 23 |ion of Y|orick..#|
|00002c50| 20 20 20 20 20 20 20 44 | 4f 20 4e 4f 54 20 4d 4f | D|O NOT MO|
|00002c60| 44 49 46 59 20 74 68 69 | 73 20 73 65 63 74 69 6f |DIFY thi|s sectio|
|00002c70| 6e 20 69 66 20 79 6f 75 | 20 63 61 6e 20 61 76 6f |n if you| can avo|
|00002c80| 69 64 20 69 74 2e 20 20 | 28 49 66 20 69 74 0a 23 |id it. |(If it.#|
|00002c90| 20 20 20 20 20 20 20 6e | 65 65 64 73 20 74 6f 20 | n|eeds to |
|00002ca0| 62 65 20 66 69 78 65 64 | 2c 20 4d 61 6b 65 74 6d |be fixed|, Maketm|
|00002cb0| 70 6c 20 73 68 6f 75 6c | 64 20 62 65 20 66 69 78 |pl shoul|d be fix|
|00002cc0| 65 64 2e 29 0a 0a 23 20 | 54 68 65 20 69 64 65 61 |ed.)..# |The idea|
|00002cd0| 20 69 73 20 74 68 61 74 | 20 74 68 65 20 73 69 74 | is that| the sit|
|00002ce0| 65 20 73 70 65 63 69 66 | 69 63 20 73 65 63 74 69 |e specif|ic secti|
|00002cf0| 6f 6e 20 72 65 70 72 65 | 73 65 6e 74 73 20 74 68 |on repre|sents th|
|00002d00| 65 0a 23 20 70 6c 61 74 | 66 6f 72 6d 20 61 6e 64 |e.# plat|form and|
|00002d10| 20 6f 70 65 72 61 74 69 | 6e 67 20 73 79 73 74 65 | operati|ng syste|
|00002d20| 6d 20 64 65 70 65 6e 64 | 65 6e 63 69 65 73 20 77 |m depend|encies w|
|00002d30| 68 69 63 68 20 74 68 65 | 20 70 65 72 73 6f 6e 0a |hich the| person.|
|00002d40| 23 20 77 68 6f 20 62 75 | 69 6c 74 20 59 6f 72 69 |# who bu|ilt Yori|
|00002d50| 63 6b 20 68 61 64 20 74 | 6f 20 6f 76 65 72 63 6f |ck had t|o overco|
|00002d60| 6d 65 2e 20 20 49 66 20 | 79 6f 75 20 6b 65 65 70 |me. If |you keep|
|00002d70| 20 73 75 63 68 20 64 65 | 70 65 6e 64 65 63 69 65 | such de|pendecie|
|00002d80| 73 0a 23 20 6f 75 74 20 | 6f 66 20 74 68 65 20 63 |s.# out |of the c|
|00002d90| 6f 64 65 20 73 70 65 63 | 69 66 69 63 20 73 65 63 |ode spec|ific sec|
|00002da0| 74 69 6f 6e 2c 20 74 68 | 65 6e 20 69 74 20 77 69 |tion, th|en it wi|
|00002db0| 6c 6c 20 62 65 20 65 61 | 73 79 20 66 6f 72 20 79 |ll be ea|sy for y|
|00002dc0| 6f 75 0a 23 20 74 6f 20 | 70 6f 72 74 20 79 6f 75 |ou.# to |port you|
|00002dd0| 72 20 63 6f 64 65 20 74 | 6f 20 61 6e 79 20 70 6c |r code t|o any pl|
|00002de0| 61 74 66 6f 72 6d 20 77 | 68 69 63 68 20 61 6c 72 |atform w|hich alr|
|00002df0| 65 61 64 79 20 68 61 73 | 20 59 6f 72 69 63 6b 3a |eady has| Yorick:|
|00002e00| 0a 23 0a 23 20 20 20 20 | 20 20 6d 61 6b 65 20 4d |.#.# | make M|
|00002e10| 61 6b 65 66 69 6c 65 0a | 23 0a 23 20 77 69 6c 6c |akefile.|#.# will|
|00002e20| 20 72 65 70 6c 61 63 65 | 20 74 68 65 20 73 69 74 | replace| the sit|
|00002e30| 65 20 73 70 65 63 69 66 | 69 63 20 73 65 63 74 69 |e specif|ic secti|
|00002e40| 6f 6e 20 6f 66 20 79 6f | 75 72 20 4d 61 6b 65 66 |on of yo|ur Makef|
|00002e50| 69 6c 65 20 77 69 74 68 | 20 74 68 65 0a 23 20 6f |ile with| the.# o|
|00002e60| 6e 65 20 69 74 20 66 69 | 6e 64 73 20 69 6e 20 24 |ne it fi|nds in $|
|00002e70| 28 59 5f 48 4f 4d 45 29 | 2f 4d 61 6b 65 74 6d 70 |(Y_HOME)|/Maketmp|
|00002e80| 6c 2e 0a 23 20 54 68 65 | 20 6f 6e 6c 79 20 74 68 |l..# The| only th|
|00002e90| 69 6e 67 20 79 6f 75 20 | 6e 65 65 64 20 74 6f 20 |ing you |need to |
|00002ea0| 66 69 6e 64 20 6f 75 74 | 20 69 6e 20 6f 72 64 65 |find out| in orde|
|00002eb0| 72 20 74 6f 20 70 6f 72 | 74 20 79 6f 75 72 20 73 |r to por|t your s|
|00002ec0| 70 65 63 69 61 6c 0a 23 | 20 76 65 72 73 69 6f 6e |pecial.#| version|
|00002ed0| 20 74 6f 20 61 20 6e 65 | 77 20 70 6c 61 74 66 6f | to a ne|w platfo|
|00002ee0| 72 6d 20 69 73 20 74 68 | 65 20 59 6f 72 69 63 6b |rm is th|e Yorick|
|00002ef0| 20 68 6f 6d 65 20 64 69 | 72 65 63 74 6f 72 79 20 | home di|rectory |
|00002f00| 59 5f 48 4f 4d 45 2e 0a | 23 20 54 68 65 20 6e 61 |Y_HOME..|# The na|
|00002f10| 6d 65 20 6f 66 20 74 68 | 65 20 59 5f 48 4f 4d 45 |me of th|e Y_HOME|
|00002f20| 20 64 69 72 65 63 74 6f | 72 79 20 69 73 0a 23 0a | directo|ry is.#.|
|00002f30| 23 20 20 20 20 20 24 28 | 65 78 65 63 5f 70 72 65 |# $(|exec_pre|
|00002f40| 66 69 78 29 2f 79 6f 72 | 68 6f 6d 65 0a 23 0a 23 |fix)/yor|home.#.#|
|00002f50| 20 57 68 65 72 65 20 65 | 78 65 63 5f 70 72 65 66 | Where e|xec_pref|
|00002f60| 69 78 20 76 61 72 69 65 | 73 20 66 72 6f 6d 20 69 |ix varie|s from i|
|00002f70| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 20 74 6f 20 69 |nstallat|ion to i|
|00002f80| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 2e 20 20 53 69 |nstallat|ion. Si|
|00002f90| 62 6c 69 6e 67 0a 23 20 | 64 69 72 65 63 74 6f 72 |bling.# |director|
|00002fa0| 69 65 73 20 62 69 6e 20 | 61 6e 64 20 6c 69 62 20 |ies bin |and lib |
|00002fb0| 6f 66 20 79 6f 72 68 6f | 6d 65 20 61 72 65 20 61 |of yorho|me are a|
|00002fc0| 6c 73 6f 20 73 69 67 6e | 69 66 69 63 61 6e 74 20 |lso sign|ificant |
|00002fd0| 64 75 72 69 6e 67 20 74 | 68 65 0a 23 20 62 75 69 |during t|he.# bui|
|00002fe0| 6c 64 69 6e 67 20 6f 66 | 20 79 6f 75 72 20 63 6f |lding of| your co|
|00002ff0| 64 65 2e 0a 0a 23 20 49 | 6e 20 61 64 64 69 74 69 |de...# I|n additi|
|00003000| 6f 6e 20 74 6f 20 79 6f | 75 72 20 59 5f 42 55 49 |on to yo|ur Y_BUI|
|00003010| 4c 44 20 64 69 72 65 63 | 74 6f 72 79 2c 20 61 6e |LD direc|tory, an|
|00003020| 64 20 74 68 65 20 70 75 | 62 6c 69 63 20 59 5f 48 |d the pu|blic Y_H|
|00003030| 4f 4d 45 20 64 69 72 65 | 63 74 6f 72 79 2c 0a 23 |OME dire|ctory,.#|
|00003040| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 20 62 65 20 | you nee|d to be |
|00003050| 61 77 61 72 65 20 6f 66 | 20 74 77 6f 20 6f 74 68 |aware of| two oth|
|00003060| 65 72 20 64 69 72 65 63 | 74 6f 72 69 65 73 3a 0a |er direc|tories:.|
|00003070| 23 20 20 20 20 20 59 5f | 53 49 54 45 20 20 20 20 |# Y_|SITE |
|00003080| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 20 77 68 |the dire|ctory wh|
|00003090| 65 72 65 20 74 68 65 20 | 6d 61 63 68 69 6e 65 2d |ere the |machine-|
|000030a0| 69 6e 64 65 70 65 6e 64 | 65 6e 74 20 63 6f 6d 70 |independ|ent comp|
|000030b0| 6f 6e 65 6e 74 73 0a 23 | 20 20 20 20 20 20 20 20 |onents.#| |
|000030c0| 20 20 20 20 20 20 20 6f | 66 20 59 6f 72 69 63 6b | o|f Yorick|
|000030d0| 20 72 65 73 69 64 65 20 | 28 74 68 69 73 20 6d 61 | reside |(this ma|
|000030e0| 79 20 62 65 20 74 68 65 | 20 73 61 6d 65 20 61 73 |y be the| same as|
|000030f0| 20 59 5f 48 4f 4d 45 29 | 2e 0a 23 20 20 20 20 20 | Y_HOME)|..# |
|00003100| 59 5f 4c 41 55 4e 43 48 | 20 20 74 68 65 20 64 69 |Y_LAUNCH| the di|
|00003110| 72 65 63 74 6f 72 79 20 | 77 68 65 72 65 20 79 6f |rectory |where yo|
|00003120| 75 20 70 75 74 20 74 68 | 65 20 65 78 65 63 75 74 |u put th|e execut|
|00003130| 61 62 6c 65 20 66 69 6c | 65 0a 23 20 20 20 20 20 |able fil|e.# |
|00003140| 20 20 20 20 20 20 20 20 | 20 20 79 6f 75 20 61 72 | | you ar|
|00003150| 65 20 61 62 6f 75 74 20 | 74 6f 20 62 75 69 6c 64 |e about |to build|
|00003160| 2e 20 20 28 54 68 69 73 | 20 64 69 72 65 63 74 6f |. (This| directo|
|00003170| 72 79 20 69 73 20 64 65 | 74 65 72 6d 69 6e 65 64 |ry is de|termined|
|00003180| 0a 23 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.# | |
|00003190| 20 62 79 20 79 6f 75 72 | 20 76 65 72 73 69 6f 6e | by your| version|
|000031a0| 20 6f 66 20 59 6f 72 69 | 63 6b 20 77 68 65 6e 20 | of Yori|ck when |
|000031b0| 69 74 20 73 74 61 72 74 | 73 3b 20 69 74 20 6d 61 |it start|s; it ma|
|000031c0| 79 20 62 65 20 74 68 65 | 0a 23 20 20 20 20 20 20 |y be the|.# |
|000031d0| 20 20 20 20 20 20 20 20 | 20 73 61 6d 65 20 61 73 | | same as|
|000031e0| 20 59 5f 42 55 49 4c 44 | 2e 29 20 20 49 66 20 79 | Y_BUILD|.) If y|
|000031f0| 6f 75 20 77 61 6e 74 20 | 74 6f 20 6d 6f 76 65 20 |ou want |to move |
|00003200| 79 6f 75 72 20 76 65 72 | 73 69 6f 6e 20 6f 66 0a |your ver|sion of.|
|00003210| 23 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |# | |
|00003220| 59 6f 72 69 63 6b 20 74 | 6f 20 61 20 64 69 72 65 |Yorick t|o a dire|
|00003230| 63 74 6f 72 79 20 6f 74 | 68 65 72 20 74 68 61 6e |ctory ot|her than|
|00003240| 20 59 5f 42 55 49 4c 44 | 20 61 66 74 65 72 20 79 | Y_BUILD| after y|
|00003250| 6f 75 0a 23 20 20 20 20 | 20 20 20 20 20 20 20 20 |ou.# | |
|00003260| 20 20 20 68 61 76 65 20 | 64 65 62 75 67 67 65 64 | have |debugged|
|00003270| 20 69 74 2c 20 73 65 65 | 20 74 68 65 20 73 65 63 | it, see| the sec|
|00003280| 74 69 6f 6e 20 22 4d 6f | 76 69 6e 67 20 79 6f 75 |tion "Mo|ving you|
|00003290| 72 20 53 70 65 63 69 61 | 6c 0a 23 20 20 20 20 20 |r Specia|l.# |
|000032a0| 20 20 20 20 20 20 20 20 | 20 20 56 65 72 73 69 6f | | Versio|
|000032b0| 6e 20 6f 66 20 59 6f 72 | 69 63 6b 20 74 6f 20 41 |n of Yor|ick to A|
|000032c0| 6e 6f 74 68 65 72 20 44 | 69 72 65 63 74 6f 72 79 |nother D|irectory|
|000032d0| 22 20 62 65 6c 6f 77 2e | 29 0a 23 20 4f 6e 20 6d |" below.|).# On m|
|000032e0| 79 20 6e 65 74 77 6f 72 | 6b 2c 0a 23 20 20 20 20 |y networ|k,.# |
|000032f0| 20 59 5f 48 4f 4d 45 20 | 3d 20 2f 75 73 72 2f 6c | Y_HOME |= /usr/l|
|00003300| 6f 63 61 6c 2f 59 6f 72 | 69 63 6b 2f 31 2e 30 2f |ocal/Yor|ick/1.0/|
|00003310| 79 6f 72 68 6f 6d 65 0a | 23 20 20 20 20 20 20 20 |yorhome.|# |
|00003320| 20 2f 75 73 72 2f 6c 6f | 63 61 6c 20 69 73 20 6d | /usr/lo|cal is m|
|00003330| 6f 75 6e 74 65 64 20 74 | 6f 20 6f 6e 65 20 66 69 |ounted t|o one fi|
|00003340| 6c 65 20 73 65 72 76 65 | 72 20 6f 66 20 65 61 63 |le serve|r of eac|
|00003350| 68 20 6d 61 63 68 69 6e | 65 20 74 79 70 65 0a 23 |h machin|e type.#|
|00003360| 20 20 20 20 20 20 20 20 | 6f 6e 20 74 68 65 20 6e | |on the n|
|00003370| 65 74 77 6f 72 6b 2c 20 | 73 6f 20 74 68 65 72 65 |etwork, |so there|
|00003380| 20 69 73 20 6f 6e 65 20 | 6f 66 20 74 68 65 73 65 | is one |of these|
|00003390| 20 70 65 72 20 74 79 70 | 65 20 6f 66 20 6d 61 63 | per typ|e of mac|
|000033a0| 68 69 6e 65 0a 23 20 20 | 20 20 20 59 5f 53 49 54 |hine.# | Y_SIT|
|000033b0| 45 20 3d 20 2f 65 6e 76 | 2f 59 6f 72 69 63 6b 2f |E = /env|/Yorick/|
|000033c0| 79 6f 72 69 63 6b 2d 31 | 2e 30 2f 59 6f 72 69 63 |yorick-1|.0/Yoric|
|000033d0| 6b 0a 23 20 20 20 20 20 | 20 20 20 2f 65 6e 76 20 |k.# | /env |
|000033e0| 69 73 20 6d 6f 75 6e 74 | 65 64 20 74 6f 20 61 20 |is mount|ed to a |
|000033f0| 73 69 6e 67 6c 65 20 66 | 69 6c 65 20 73 65 72 76 |single f|ile serv|
|00003400| 65 72 2c 20 76 69 73 69 | 62 6c 65 20 66 72 6f 6d |er, visi|ble from|
|00003410| 20 65 76 65 72 79 0a 23 | 20 20 20 20 20 20 20 20 | every.#| |
|00003420| 6d 61 63 68 69 6e 65 20 | 6f 6e 20 74 68 65 20 6e |machine |on the n|
|00003430| 65 74 77 6f 72 6b 2c 20 | 77 68 61 74 65 76 65 72 |etwork, |whatever|
|00003440| 20 74 79 70 65 20 69 74 | 20 69 73 0a 0a 23 20 59 | type it| is..# Y|
|00003450| 6f 75 20 6d 75 73 74 20 | 73 65 74 20 74 68 65 20 |ou must |set the |
|00003460| 66 6f 6c 6c 6f 77 69 6e | 67 20 76 61 72 69 61 62 |followin|g variab|
|00003470| 6c 65 73 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |les in o|rder to |
|00003480| 65 6e 61 62 6c 65 20 6d | 61 6b 65 20 74 6f 20 62 |enable m|ake to b|
|00003490| 75 69 6c 64 0a 23 20 79 | 6f 75 72 20 63 75 73 74 |uild.# y|our cust|
|000034a0| 6f 6d 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 59 6f |om versi|on of Yo|
|000034b0| 72 69 63 6b 3a 0a 0a 23 | 20 20 20 20 20 59 5f 48 |rick:..#| Y_H|
|000034c0| 4f 4d 45 0a 23 20 20 20 | 20 20 20 20 20 74 68 65 |OME.# | the|
|000034d0| 20 64 69 72 65 63 74 6f | 72 79 20 77 68 65 72 65 | directo|ry where|
|000034e0| 20 59 6f 72 69 63 6b 20 | 69 73 20 69 6e 73 74 61 | Yorick |is insta|
|000034f0| 6c 6c 65 64 20 6f 6e 20 | 74 68 69 73 20 61 72 63 |lled on |this arc|
|00003500| 68 69 74 65 63 74 75 72 | 65 2e 0a 23 20 20 20 20 |hitectur|e..# |
|00003510| 20 20 20 20 52 75 6e 20 | 79 6f 72 69 63 6b 20 61 | Run |yorick a|
|00003520| 6e 64 20 74 79 70 65 20 | 22 68 65 6c 70 22 20 74 |nd type |"help" t|
|00003530| 6f 20 66 69 6e 64 20 6f | 75 74 20 77 68 65 72 65 |o find o|ut where|
|00003540| 20 59 5f 4c 41 55 4e 43 | 48 20 69 73 2e 0a 23 20 | Y_LAUNC|H is..# |
|00003550| 20 20 20 20 20 20 20 54 | 68 65 6e 20 74 72 79 20 | T|hen try |
|00003560| 20 20 59 5f 4c 41 55 4e | 43 48 2f 2e 2e 2f 79 6f | Y_LAUN|CH/../yo|
|00003570| 72 68 6f 6d 65 20 20 20 | 2d 2d 20 69 66 20 74 68 |rhome |-- if th|
|00003580| 61 74 20 65 78 69 73 74 | 73 20 61 6e 64 20 69 73 |at exist|s and is|
|00003590| 20 61 0a 23 20 20 20 20 | 20 20 20 20 64 69 72 65 | a.# | dire|
|000035a0| 63 74 6f 72 79 20 63 6f | 6e 74 61 69 6e 69 6e 67 |ctory co|ntaining|
|000035b0| 20 4d 61 6b 65 74 6d 70 | 6c 2c 20 74 68 65 6e 20 | Maketmp|l, then |
|000035c0| 74 68 61 74 20 69 73 20 | 59 5f 48 4f 4d 45 2e 20 |that is |Y_HOME. |
|000035d0| 20 4f 74 68 65 72 77 69 | 73 65 0a 23 20 20 20 20 | Otherwi|se.# |
|000035e0| 20 20 20 20 79 6f 75 20 | 6e 65 65 64 20 74 6f 20 | you |need to |
|000035f0| 61 73 6b 20 77 68 6f 65 | 76 65 72 20 62 75 69 6c |ask whoe|ver buil|
|00003600| 74 20 59 6f 72 69 63 6b | 20 61 74 20 79 6f 75 72 |t Yorick| at your|
|00003610| 20 73 69 74 65 2e 0a 23 | 20 20 20 20 20 20 20 20 | site..#| |
|00003620| 65 78 65 63 5f 70 72 65 | 66 69 78 20 69 73 20 59 |exec_pre|fix is Y|
|00003630| 5f 48 4f 4d 45 2f 2e 2e | 0a 23 20 20 20 20 20 43 |_HOME/..|.# C|
|00003640| 4f 44 45 5f 4e 41 4d 45 | 0a 23 20 20 20 20 20 4e |ODE_NAME|.# N|
|00003650| 4f 4e 5f 53 48 41 52 41 | 42 4c 45 0a 23 20 20 20 |ON_SHARA|BLE.# |
|00003660| 20 20 20 20 20 74 68 65 | 20 6e 61 6d 65 20 79 6f | the| name yo|
|00003670| 75 20 77 61 6e 74 20 74 | 6f 20 67 69 76 65 20 79 |u want t|o give y|
|00003680| 6f 75 72 20 63 75 73 74 | 6f 6d 20 59 6f 72 69 63 |our cust|om Yoric|
|00003690| 6b 20 76 65 72 73 69 6f | 6e 2e 0a 23 20 20 20 20 |k versio|n..# |
|000036a0| 20 20 20 20 4f 6e 65 20 | 6f 66 20 74 68 65 73 65 | One |of these|
|000036b0| 20 74 77 6f 20 73 68 6f | 75 6c 64 20 61 6c 77 61 | two sho|uld alwa|
|000036c0| 79 73 20 62 65 20 74 68 | 65 20 73 74 72 69 6e 67 |ys be th|e string|
|000036d0| 20 22 75 6e 75 73 65 64 | 22 2e 0a 23 20 20 20 20 | "unused|"..# |
|000036e0| 20 20 20 20 59 6f 75 20 | 6e 65 65 64 20 74 6f 20 | You |need to |
|000036f0| 6d 61 6b 65 20 61 20 79 | 6f 75 72 20 66 69 72 73 |make a y|our firs|
|00003700| 74 20 64 65 63 69 73 69 | 6f 6e 20 68 65 72 65 3a |t decisi|on here:|
|00003710| 0a 23 20 20 20 20 20 20 | 20 20 20 20 20 49 66 20 |.# | If |
|00003720| 79 6f 75 72 20 70 61 63 | 6b 61 67 65 20 69 73 20 |your pac|kage is |
|00003730| 69 6e 74 65 6e 64 65 64 | 20 66 6f 72 20 75 73 65 |intended| for use|
|00003740| 20 69 6e 20 63 6f 6e 6a | 75 6e 63 74 69 6f 6e 20 | in conj|unction |
|00003750| 77 69 74 68 0a 23 20 20 | 20 20 20 20 20 20 20 20 |with.# | |
|00003760| 20 6f 74 68 65 72 20 63 | 75 73 74 6f 6d 20 59 6f | other c|ustom Yo|
|00003770| 72 69 63 6b 20 70 61 63 | 6b 61 67 65 73 2c 20 64 |rick pac|kages, d|
|00003780| 65 66 69 6e 65 20 43 4f | 44 45 5f 4e 41 4d 45 2e |efine CO|DE_NAME.|
|00003790| 20 20 57 69 74 68 0a 23 | 20 20 20 20 20 20 20 20 | With.#| |
|000037a0| 20 20 20 43 4f 44 45 5f | 4e 41 4d 45 2c 20 6d 61 | CODE_|NAME, ma|
|000037b0| 6b 65 20 77 69 6c 6c 20 | 63 72 65 61 74 65 20 61 |ke will |create a|
|000037c0| 20 6c 69 62 72 61 72 79 | 20 63 6f 6e 74 61 69 6e | library| contain|
|000037d0| 69 6e 67 20 79 6f 75 72 | 0a 23 20 20 20 20 20 20 |ing your|.# |
|000037e0| 20 20 20 20 20 6f 62 6a | 65 63 74 20 63 6f 64 65 | obj|ect code|
|000037f0| 2e 20 20 54 68 69 73 20 | 6c 69 62 72 61 72 79 20 |. This |library |
|00003800| 63 61 6e 20 62 65 20 6c | 6f 61 64 65 64 20 62 79 |can be l|oaded by|
|00003810| 20 79 6f 75 72 73 65 6c | 66 20 6f 72 0a 23 20 20 | yoursel|f or.# |
|00003820| 20 20 20 20 20 20 20 20 | 20 6f 74 68 65 72 73 20 | | others |
|00003830| 69 6e 20 74 68 65 20 66 | 75 74 75 72 65 2c 20 77 |in the f|uture, w|
|00003840| 68 6f 20 77 69 73 68 20 | 74 6f 20 69 6e 63 6c 75 |ho wish |to inclu|
|00003850| 64 65 20 79 6f 75 72 20 | 70 61 63 6b 61 67 65 20 |de your |package |
|00003860| 69 6e 0a 23 20 20 20 20 | 20 20 20 20 20 20 20 61 |in.# | a|
|00003870| 20 74 68 65 69 72 20 6f | 77 6e 20 63 75 73 74 6f | their o|wn custo|
|00003880| 6d 20 76 65 72 73 69 6f | 6e 20 6f 66 20 59 6f 72 |m versio|n of Yor|
|00003890| 69 63 6b 2e 0a 23 20 20 | 20 20 20 20 20 20 20 20 |ick..# | |
|000038a0| 20 41 6c 74 65 72 6e 61 | 74 69 76 65 6c 79 2c 20 | Alterna|tively, |
|000038b0| 69 66 20 6e 65 69 74 68 | 65 72 20 79 6f 75 20 6e |if neith|er you n|
|000038c0| 6f 72 20 61 6e 79 6f 6e | 65 20 65 6c 73 65 20 6d |or anyon|e else m|
|000038d0| 69 67 68 74 20 62 65 0a | 23 20 20 20 20 20 20 20 |ight be.|# |
|000038e0| 20 20 20 20 69 6e 74 65 | 72 65 73 74 65 64 20 69 | inte|rested i|
|000038f0| 6e 20 79 6f 75 72 20 70 | 61 63 6b 61 67 65 20 61 |n your p|ackage a|
|00003900| 74 20 61 20 66 75 74 75 | 72 65 20 74 69 6d 65 2c |t a futu|re time,|
|00003910| 20 64 65 66 69 6e 65 0a | 23 20 20 20 20 20 20 20 | define.|# |
|00003920| 20 20 20 20 4e 4f 4e 5f | 53 48 41 52 41 42 4c 45 | NON_|SHARABLE|
|00003930| 20 69 6e 73 74 65 61 64 | 2e 20 20 49 6e 20 74 68 | instead|. In th|
|00003940| 69 73 20 63 61 73 65 2c | 20 6d 61 6b 65 20 77 69 |is case,| make wi|
|00003950| 6c 6c 20 6e 6f 74 20 62 | 75 69 6c 64 20 61 0a 23 |ll not b|uild a.#|
|00003960| 20 20 20 20 20 20 20 20 | 20 20 20 6c 69 62 72 61 | | libra|
|00003970| 72 79 20 6f 66 20 79 6f | 75 72 20 6f 62 6a 65 63 |ry of yo|ur objec|
|00003980| 74 20 63 6f 64 65 2c 20 | 62 75 74 20 77 69 6c 6c |t code, |but will|
|00003990| 20 69 6e 73 74 65 61 64 | 20 6c 6f 61 64 20 69 74 | instead| load it|
|000039a0| 0a 23 20 20 20 20 20 20 | 20 20 20 20 20 64 69 72 |.# | dir|
|000039b0| 65 63 74 6c 79 20 69 6e | 74 6f 20 74 68 69 73 20 |ectly in|to this |
|000039c0| 6f 6e 65 20 63 75 73 74 | 6f 6d 20 59 6f 72 69 63 |one cust|om Yoric|
|000039d0| 6b 2e 20 20 54 68 69 73 | 20 77 6f 75 6c 64 20 62 |k. This| would b|
|000039e0| 65 0a 23 20 20 20 20 20 | 20 20 20 20 20 20 61 70 |e.# | ap|
|000039f0| 70 72 6f 70 72 69 61 74 | 65 20 69 66 20 79 6f 75 |propriat|e if you|
|00003a00| 20 61 72 65 20 6a 75 73 | 74 20 61 64 64 69 6e 67 | are jus|t adding|
|00003a10| 20 6f 6e 65 20 6f 72 20 | 74 77 6f 20 73 69 6d 70 | one or |two simp|
|00003a20| 6c 65 2c 0a 23 20 20 20 | 20 20 20 20 20 20 20 20 |le,.# | |
|00003a30| 73 70 65 63 69 61 6c 20 | 70 75 72 70 6f 73 65 20 |special |purpose |
|00003a40| 72 6f 75 74 69 6e 65 73 | 20 74 6f 20 69 6d 70 72 |routines| to impr|
|00003a50| 6f 76 65 20 59 6f 72 69 | 63 6b 20 70 65 72 66 6f |ove Yori|ck perfo|
|00003a60| 72 6d 61 6e 63 65 0a 23 | 20 20 20 20 20 20 20 20 |rmance.#| |
|00003a70| 20 20 20 6f 6e 20 74 68 | 65 20 70 72 6f 62 6c 65 | on th|e proble|
|00003a80| 6d 20 79 6f 75 20 61 72 | 65 20 63 75 72 72 65 6e |m you ar|e curren|
|00003a90| 74 6c 79 20 73 6f 6c 76 | 69 6e 67 2e 0a 23 20 20 |tly solv|ing..# |
|00003aa0| 20 20 20 43 5f 4f 50 54 | 49 4d 49 5a 45 0a 23 20 | C_OPT|IMIZE.# |
|00003ab0| 20 20 20 20 46 5f 4f 50 | 54 49 4d 49 5a 45 0a 23 | F_OP|TIMIZE.#|
|00003ac0| 20 20 20 20 20 20 20 20 | 6e 6f 72 6d 61 6c 6c 79 | |normally|
|00003ad0| 20 73 65 74 20 74 6f 20 | 22 2d 67 22 20 28 74 6f | set to |"-g" (to|
|00003ae0| 20 64 65 62 75 67 29 20 | 6f 72 20 22 2d 4f 22 20 | debug) |or "-O" |
|00003af0| 28 74 6f 20 6f 70 74 69 | 6d 69 7a 65 29 2c 20 64 |(to opti|mize), d|
|00003b00| 65 70 65 6e 64 69 6e 67 | 0a 23 20 20 20 20 20 20 |epending|.# |
|00003b10| 20 20 6f 6e 20 77 68 65 | 72 65 20 79 6f 75 20 61 | on whe|re you a|
|00003b20| 72 65 20 69 6e 20 74 68 | 65 20 63 6f 64 65 20 64 |re in th|e code d|
|00003b30| 65 76 65 6c 6f 70 6d 65 | 6e 74 20 63 79 63 6c 65 |evelopme|nt cycle|
|00003b40| 2e 20 20 4e 6f 72 6d 61 | 6c 6c 79 2c 20 79 6f 75 |. Norma|lly, you|
|00003b50| 0a 23 20 20 20 20 20 20 | 20 20 77 6f 75 6c 64 20 |.# | would |
|00003b60| 75 73 65 20 22 2d 67 22 | 20 75 6e 74 69 6c 20 79 |use "-g"| until y|
|00003b70| 6f 75 72 20 63 6f 64 65 | 20 69 73 20 72 75 6e 6e |our code| is runn|
|00003b80| 69 6e 67 20 72 65 6c 69 | 61 62 6c 79 2c 20 74 68 |ing reli|ably, th|
|00003b90| 65 6e 20 6d 61 6b 65 0a | 23 20 20 20 20 20 20 20 |en make.|# |
|00003ba0| 20 61 20 66 69 6e 61 6c | 20 76 65 72 73 69 6f 6e | a final| version|
|00003bb0| 20 77 69 74 68 20 22 2d | 4f 22 20 66 6f 72 20 61 | with "-|O" for a|
|00003bc0| 63 74 75 61 6c 20 75 73 | 65 2e 20 20 43 5f 4f 50 |ctual us|e. C_OP|
|00003bd0| 54 49 4d 49 5a 45 20 63 | 61 6e 20 62 65 0a 23 20 |TIMIZE c|an be.# |
|00003be0| 20 20 20 20 20 20 20 61 | 6e 79 20 66 6c 61 67 73 | a|ny flags|
|00003bf0| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 70 61 73 | you wan|t to pas|
|00003c00| 73 20 74 6f 20 74 68 65 | 20 43 20 63 6f 6d 70 69 |s to the| C compi|
|00003c10| 6c 65 72 2c 20 61 6e 64 | 20 46 5f 4f 50 54 49 4d |ler, and| F_OPTIM|
|00003c20| 49 5a 45 20 63 61 6e 0a | 23 20 20 20 20 20 20 20 |IZE can.|# |
|00003c30| 20 62 65 20 61 6e 79 20 | 66 6c 61 67 73 20 79 6f | be any |flags yo|
|00003c40| 75 20 77 61 6e 74 20 74 | 6f 20 70 61 73 73 20 74 |u want t|o pass t|
|00003c50| 6f 20 74 68 65 20 46 4f | 52 54 52 41 4e 20 63 6f |o the FO|RTRAN co|
|00003c60| 6d 70 69 6c 65 72 2e 0a | 23 20 20 20 20 20 4f 42 |mpiler..|# OB|
|00003c70| 4a 53 0a 23 20 20 20 20 | 20 20 20 20 74 68 65 20 |JS.# | the |
|00003c80| 6c 69 73 74 20 6f 66 20 | 6f 62 6a 65 63 74 20 66 |list of |object f|
|00003c90| 69 6c 65 73 20 74 6f 20 | 62 65 20 62 75 69 6c 74 |iles to |be built|
|00003ca0| 20 66 72 6f 6d 20 73 6f | 75 72 63 65 20 63 6f 64 | from so|urce cod|
|00003cb0| 65 20 69 6e 20 74 68 69 | 73 0a 23 20 20 20 20 20 |e in thi|s.# |
|00003cc0| 20 20 20 64 69 72 65 63 | 74 6f 72 79 2e 20 20 43 | direc|tory. C|
|00003cd0| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 20 73 68 6f | source |code sho|
|00003ce0| 75 6c 64 20 72 65 73 69 | 64 65 20 69 6e 20 66 69 |uld resi|de in fi|
|00003cf0| 6c 65 73 20 65 6e 64 69 | 6e 67 20 77 69 74 68 0a |les endi|ng with.|
|00003d00| 23 20 20 20 20 20 20 20 | 20 22 2e 63 22 20 28 6f |# | ".c" (o|
|00003d10| 72 20 22 2e 68 22 20 66 | 6f 72 20 68 65 61 64 65 |r ".h" f|or heade|
|00003d20| 72 20 66 69 6c 65 73 29 | 3b 20 46 4f 52 54 52 41 |r files)|; FORTRA|
|00003d30| 4e 20 73 6f 75 72 63 65 | 20 66 69 6c 65 20 6e 61 |N source| file na|
|00003d40| 6d 65 73 20 73 68 6f 75 | 6c 64 0a 23 20 20 20 20 |mes shou|ld.# |
|00003d50| 20 20 20 20 65 6e 64 20 | 77 69 74 68 20 22 2e 66 | end |with ".f|
|00003d60| 22 2e 20 20 54 68 65 20 | 4f 42 4a 53 20 61 72 65 |". The |OBJS are|
|00003d70| 20 61 20 73 70 61 63 65 | 20 64 65 6c 69 6d 69 74 | a space| delimit|
|00003d80| 65 64 20 6c 69 73 74 20 | 6f 66 20 66 69 6c 65 73 |ed list |of files|
|00003d90| 0a 23 20 20 20 20 20 20 | 20 20 65 6e 64 69 6e 67 |.# | ending|
|00003da0| 20 77 69 74 68 20 22 2e | 6f 22 20 77 69 74 68 20 | with ".|o" with |
|00003db0| 70 72 65 66 69 78 65 73 | 20 6d 61 74 63 68 69 6e |prefixes| matchin|
|00003dc0| 67 20 74 68 65 20 74 68 | 65 20 22 2e 63 22 20 6f |g the th|e ".c" o|
|00003dd0| 72 20 22 2e 66 22 0a 23 | 20 20 20 20 20 20 20 20 |r ".f".#| |
|00003de0| 66 69 6c 65 73 20 79 6f | 75 20 77 61 6e 74 20 74 |files yo|u want t|
|00003df0| 6f 20 63 6f 6d 70 69 6c | 65 2e 20 20 54 68 65 20 |o compil|e. The |
|00003e00| 4f 42 4a 53 20 6c 69 73 | 74 20 63 61 6e 20 62 65 |OBJS lis|t can be|
|00003e10| 20 63 6f 6e 74 69 6e 75 | 65 64 20 6f 6e 74 6f 0a | continu|ed onto.|
|00003e20| 23 20 20 20 20 20 20 20 | 20 6d 75 6c 74 69 70 6c |# | multipl|
|00003e30| 65 20 6c 69 6e 65 73 20 | 62 79 20 70 75 74 74 69 |e lines |by putti|
|00003e40| 6e 67 20 61 20 62 61 63 | 6b 73 6c 61 73 68 20 22 |ng a bac|kslash "|
|00003e50| 5c 22 20 61 74 20 74 68 | 65 20 65 6e 64 20 6f 66 |\" at th|e end of|
|00003e60| 20 74 68 65 0a 23 20 20 | 20 20 20 20 20 20 69 6e | the.# | in|
|00003e70| 63 6f 6d 70 6c 65 74 65 | 20 6c 69 6e 65 73 2e 0a |complete| lines..|
|00003e80| 23 20 20 20 20 20 43 4f | 44 45 5f 4c 49 42 52 41 |# CO|DE_LIBRA|
|00003e90| 52 59 0a 23 20 20 20 20 | 20 20 20 20 49 66 20 79 |RY.# | If y|
|00003ea0| 6f 75 20 73 65 6c 65 63 | 74 65 64 20 43 4f 44 45 |ou selec|ted CODE|
|00003eb0| 5f 4e 41 4d 45 2c 20 73 | 65 74 20 74 68 69 73 20 |_NAME, s|et this |
|00003ec0| 74 6f 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |to the n|ame of t|
|00003ed0| 68 65 20 6c 69 62 72 61 | 72 79 20 79 6f 75 0a 23 |he libra|ry you.#|
|00003ee0| 20 20 20 20 20 20 20 20 | 77 61 6e 74 20 79 6f 75 | |want you|
|00003ef0| 72 20 4f 42 4a 53 20 70 | 6c 61 63 65 64 20 69 6e |r OBJS p|laced in|
|00003f00| 2e 20 20 4c 69 62 72 61 | 72 79 20 6e 61 6d 65 73 |. Libra|ry names|
|00003f10| 20 6d 75 73 74 20 62 65 | 67 69 6e 20 77 69 74 68 | must be|gin with|
|00003f20| 20 22 6c 69 62 22 0a 23 | 20 20 20 20 20 20 20 20 | "lib".#| |
|00003f30| 61 6e 64 20 65 6e 64 20 | 77 69 74 68 20 22 2e 61 |and end |with ".a|
|00003f40| 22 2e 20 20 49 66 20 79 | 6f 75 20 73 65 6c 65 63 |". If y|ou selec|
|00003f50| 74 65 64 20 4e 4f 4e 5f | 53 48 41 52 41 42 4c 45 |ted NON_|SHARABLE|
|00003f60| 2c 20 73 65 74 20 43 4f | 44 45 5f 4c 49 42 52 41 |, set CO|DE_LIBRA|
|00003f70| 52 59 0a 23 20 20 20 20 | 20 20 20 20 74 6f 20 22 |RY.# | to "|
|00003f80| 75 6e 75 73 65 64 2e 61 | 22 2e 0a 23 20 20 20 20 |unused.a|"..# |
|00003f90| 20 50 4b 47 5f 4c 49 42 | 53 0a 23 20 20 20 20 20 | PKG_LIB|S.# |
|00003fa0| 50 4b 47 5f 4f 42 4a 53 | 0a 23 20 20 20 20 20 20 |PKG_OBJS|.# |
|00003fb0| 20 20 49 66 20 79 6f 75 | 20 73 65 74 20 43 4f 44 | If you| set COD|
|00003fc0| 45 5f 4c 49 42 52 41 52 | 59 20 74 6f 2c 20 73 61 |E_LIBRAR|Y to, sa|
|00003fd0| 79 2c 20 22 6c 69 62 6d | 79 5f 63 6f 64 65 2e 61 |y, "libm|y_code.a|
|00003fe0| 22 2c 20 74 68 65 6e 20 | 50 4b 47 5f 4c 49 42 53 |", then |PKG_LIBS|
|00003ff0| 0a 23 20 20 20 20 20 20 | 20 20 73 68 6f 75 6c 64 |.# | should|
|00004000| 20 62 65 20 73 65 74 20 | 74 6f 20 22 2d 6c 6d 79 | be set |to "-lmy|
|00004010| 5f 63 6f 64 65 22 2c 20 | 73 6f 20 74 68 61 74 20 |_code", |so that |
|00004020| 79 6f 75 72 20 6c 69 62 | 72 61 72 79 20 77 69 6c |your lib|rary wil|
|00004030| 6c 20 62 65 0a 23 20 20 | 20 20 20 20 20 20 6c 6f |l be.# | lo|
|00004040| 61 64 65 64 2e 20 20 49 | 66 20 79 6f 75 20 61 72 |aded. I|f you ar|
|00004050| 65 20 6c 6f 61 64 69 6e | 67 20 6f 74 68 65 72 20 |e loadin|g other |
|00004060| 63 75 73 74 6f 6d 20 59 | 6f 72 69 63 6b 20 6c 69 |custom Y|orick li|
|00004070| 62 72 61 72 69 65 73 20 | 61 6c 6f 6e 67 0a 23 20 |braries |along.# |
|00004080| 20 20 20 20 20 20 20 77 | 69 74 68 20 79 6f 75 72 | w|ith your|
|00004090| 20 6f 77 6e 2c 20 79 6f | 75 20 6d 75 73 74 20 69 | own, yo|u must i|
|000040a0| 6e 63 6c 75 64 65 20 74 | 68 65 69 72 20 64 69 72 |nclude t|heir dir|
|000040b0| 65 63 74 6f 72 69 65 73 | 20 61 6e 64 20 6c 69 62 |ectories| and lib|
|000040c0| 72 61 72 79 0a 23 20 20 | 20 20 20 20 20 20 6e 61 |rary.# | na|
|000040d0| 6d 65 73 20 61 66 74 65 | 72 20 79 6f 75 72 20 6f |mes afte|r your o|
|000040e0| 77 6e 2e 20 20 44 65 70 | 65 6e 64 65 6e 74 20 6c |wn. Dep|endent l|
|000040f0| 69 62 72 61 72 69 65 73 | 20 6d 75 73 74 20 62 65 |ibraries| must be|
|00004100| 20 6c 69 73 74 65 64 20 | 62 65 66 6f 72 65 0a 23 | listed |before.#|
|00004110| 20 20 20 20 20 20 20 20 | 74 68 65 20 6c 69 62 72 | |the libr|
|00004120| 61 72 69 65 73 20 6f 6e | 20 77 68 69 63 68 20 74 |aries on| which t|
|00004130| 68 65 79 20 64 65 70 65 | 6e 64 2e 0a 23 20 20 20 |hey depe|nd..# |
|00004140| 20 20 20 20 20 49 6e 20 | 61 64 64 69 74 69 6f 6e | In |addition|
|00004150| 20 74 6f 20 6c 69 62 72 | 61 72 69 65 73 2c 20 79 | to libr|aries, y|
|00004160| 6f 75 20 6d 61 79 20 77 | 61 6e 74 20 74 6f 20 6c |ou may w|ant to l|
|00004170| 6f 61 64 20 6f 74 68 65 | 72 20 6f 62 6a 65 63 74 |oad othe|r object|
|00004180| 20 66 69 6c 65 73 3b 0a | 23 20 20 20 20 20 20 20 | files;.|# |
|00004190| 20 69 66 20 73 6f 2c 20 | 6c 69 73 74 20 74 68 65 | if so, |list the|
|000041a0| 6d 20 75 6e 64 65 72 20 | 50 4b 47 5f 4f 42 4a 53 |m under |PKG_OBJS|
|000041b0| 2e 20 20 59 6f 75 20 6d | 75 73 74 20 75 73 65 20 |. You m|ust use |
|000041c0| 61 74 20 6c 65 61 73 74 | 0a 23 20 20 20 20 20 20 |at least|.# |
|000041d0| 20 20 22 24 28 4f 42 4a | 53 29 20 24 28 59 57 52 | "$(OBJ|S) $(YWR|
|000041e0| 41 50 5f 4f 29 22 0a 23 | 20 20 20 20 20 20 20 20 |AP_O)".#| |
|000041f0| 49 66 20 79 6f 75 20 61 | 72 65 20 6c 6f 61 64 69 |If you a|re loadi|
|00004200| 6e 67 20 6f 74 68 65 72 | 20 70 65 6f 70 6c 65 27 |ng other| people'|
|00004210| 73 20 59 6f 72 69 63 6b | 20 70 61 63 6b 61 67 65 |s Yorick| package|
|00004220| 73 20 28 73 65 65 20 59 | 5f 4f 54 48 45 52 53 0a |s (see Y|_OTHERS.|
|00004230| 23 20 20 20 20 20 20 20 | 20 62 65 6c 6f 77 29 2c |# | below),|
|00004240| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 20 69 6e 63 | you nee|d to inc|
|00004250| 6c 75 64 65 20 74 68 65 | 69 72 20 6c 69 62 72 61 |lude the|ir libra|
|00004260| 72 69 65 73 20 69 6e 20 | 50 4b 47 5f 4c 49 42 53 |ries in |PKG_LIBS|
|00004270| 20 28 61 73 20 77 65 6c | 6c 0a 23 20 20 20 20 20 | (as wel|l.# |
|00004280| 20 20 20 61 73 20 74 68 | 65 69 72 20 69 6e 63 6c | as th|eir incl|
|00004290| 75 64 65 20 66 69 6c 65 | 73 20 69 6e 20 59 5f 4f |ude file|s in Y_O|
|000042a0| 54 48 45 52 53 29 2e 20 | 20 42 79 20 64 65 66 61 |THERS). | By defa|
|000042b0| 75 6c 74 2c 20 74 68 69 | 73 20 4d 61 6b 65 66 69 |ult, thi|s Makefi|
|000042c0| 6c 65 0a 23 20 20 20 20 | 20 20 20 20 77 69 6c 6c |le.# | will|
|000042d0| 20 6c 6f 6f 6b 20 69 6e | 20 74 68 65 20 66 6f 6c | look in| the fol|
|000042e0| 6c 6f 77 69 6e 67 20 70 | 6c 61 63 65 73 20 66 6f |lowing p|laces fo|
|000042f0| 72 20 74 68 65 20 6c 69 | 62 72 61 72 69 65 73 20 |r the li|braries |
|00004300| 69 74 20 6e 65 65 64 73 | 3a 0a 23 20 20 20 20 20 |it needs|:.# |
|00004310| 20 20 20 20 20 20 20 20 | 2e 20 20 20 20 20 20 20 | |. |
|00004320| 20 20 20 20 20 28 74 68 | 61 74 20 69 73 2c 20 59 | (th|at is, Y|
|00004330| 5f 42 55 49 4c 44 29 0a | 23 20 20 20 20 20 20 20 |_BUILD).|# |
|00004340| 20 20 20 20 20 20 59 5f | 48 4f 4d 45 2f 2e 2e 2f | Y_|HOME/../|
|00004350| 6c 69 62 0a 23 20 20 20 | 20 20 20 20 20 20 20 20 |lib.# | |
|00004360| 20 20 59 5f 48 4f 4d 45 | 2f 2e 2e 2f 63 6f 6e 74 | Y_HOME|/../cont|
|00004370| 72 69 62 0a 23 20 20 20 | 20 20 20 20 20 49 66 20 |rib.# | If |
|00004380| 79 6f 75 20 61 72 65 20 | 75 73 69 6e 67 20 6c 6f |you are |using lo|
|00004390| 61 64 69 6e 67 20 61 20 | 70 61 63 6b 61 67 65 20 |ading a |package |
|000043a0| 77 68 69 63 68 20 68 61 | 73 20 6e 6f 74 20 62 65 |which ha|s not be|
|000043b0| 65 6e 20 70 75 74 20 69 | 6e 0a 23 20 20 20 20 20 |en put i|n.# |
|000043c0| 20 20 20 6f 6e 65 20 6f | 66 20 74 68 65 73 65 20 | one o|f these |
|000043d0| 74 68 72 65 65 20 70 6c | 61 63 65 73 2c 20 79 6f |three pl|aces, yo|
|000043e0| 75 20 6d 75 73 74 20 70 | 72 6f 76 69 64 65 20 61 |u must p|rovide a|
|000043f0| 20 22 2d 4c 64 69 72 65 | 63 74 6f 72 79 20 2d 6c | "-Ldire|ctory -l|
|00004400| 70 6b 67 22 0a 23 20 20 | 20 20 20 20 20 20 69 6e |pkg".# | in|
|00004410| 20 50 4b 47 5f 4c 49 42 | 53 2e 20 20 4f 74 68 65 | PKG_LIB|S. Othe|
|00004420| 72 77 69 73 65 2c 20 22 | 2d 6c 70 6b 67 22 20 77 |rwise, "|-lpkg" w|
|00004430| 69 6c 6c 20 62 65 20 73 | 75 66 66 69 63 69 65 6e |ill be s|ufficien|
|00004440| 74 2e 0a 23 20 20 20 20 | 20 20 20 20 49 66 20 6f |t..# | If o|
|00004450| 74 68 65 72 20 70 65 6f | 70 6c 65 20 6d 69 67 68 |ther peo|ple migh|
|00004460| 74 20 77 61 6e 74 20 74 | 6f 20 75 73 65 20 79 6f |t want t|o use yo|
|00004470| 75 72 20 70 61 63 6b 61 | 67 65 2c 20 79 6f 75 20 |ur packa|ge, you |
|00004480| 77 69 6c 6c 20 6d 61 6b | 65 0a 23 20 20 20 20 20 |will mak|e.# |
|00004490| 20 20 20 69 74 20 65 61 | 73 69 65 72 20 66 6f 72 | it ea|sier for|
|000044a0| 20 74 68 65 6d 20 74 6f | 20 70 6f 72 74 20 74 68 | them to| port th|
|000044b0| 65 69 72 20 63 6f 64 65 | 20 74 6f 20 61 6e 6f 74 |eir code| to anot|
|000044c0| 68 65 72 20 70 6c 61 74 | 66 6f 72 6d 20 69 66 0a |her plat|form if.|
|000044d0| 23 20 20 20 20 20 20 20 | 20 79 6f 75 20 70 75 74 |# | you put|
|000044e0| 20 79 6f 75 72 20 6c 69 | 62 72 61 72 79 20 69 6e | your li|brary in|
|000044f0| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 59 5f 48 4f | one of |the Y_HO|
|00004500| 4d 45 20 64 69 72 65 63 | 74 6f 72 69 65 73 2e 20 |ME direc|tories. |
|00004510| 20 49 66 20 79 6f 75 0a | 23 20 20 20 20 20 20 20 | If you.|# |
|00004520| 20 64 6f 6e 27 74 2c 20 | 79 6f 75 20 61 72 65 20 | don't, |you are |
|00004530| 66 6f 72 63 69 6e 67 20 | 74 68 65 6d 20 74 6f 20 |forcing |them to |
|00004540| 68 75 6e 74 20 66 6f 72 | 20 69 74 20 6f 6e 20 65 |hunt for| it on e|
|00004550| 61 63 68 20 70 6c 61 74 | 66 6f 72 6d 2e 0a 23 20 |ach plat|form..# |
|00004560| 20 20 20 20 59 5f 49 4e | 43 4c 55 44 45 0a 23 20 | Y_IN|CLUDE.# |
|00004570| 20 20 20 20 20 20 20 49 | 6e 20 6f 72 64 65 72 20 | I|n order |
|00004580| 74 6f 20 6c 69 6e 6b 20 | 79 6f 75 72 20 63 6f 6d |to link |your com|
|00004590| 70 69 6c 65 64 20 72 6f | 75 74 69 6e 65 73 20 74 |piled ro|utines t|
|000045a0| 6f 20 74 68 65 20 59 6f | 72 69 63 6b 20 69 6e 74 |o the Yo|rick int|
|000045b0| 65 72 70 72 65 74 65 72 | 2c 0a 23 20 20 20 20 20 |erpreter|,.# |
|000045c0| 20 20 20 79 6f 75 20 6e | 65 65 64 20 74 6f 20 77 | you n|eed to w|
|000045d0| 72 69 74 65 20 61 20 59 | 6f 72 69 63 6b 20 69 6e |rite a Y|orick in|
|000045e0| 63 6c 75 64 65 20 66 69 | 6c 65 20 22 6d 79 5f 63 |clude fi|le "my_c|
|000045f0| 6f 64 65 2e 69 22 20 2d | 2d 20 70 75 74 20 74 68 |ode.i" -|- put th|
|00004600| 65 0a 23 20 20 20 20 20 | 20 20 20 6e 61 6d 65 20 |e.# | name |
|00004610| 6f 66 20 74 68 69 73 20 | 66 69 6c 65 20 69 6e 20 |of this |file in |
|00004620| 74 68 65 20 59 5f 49 4e | 43 4c 55 44 45 20 76 61 |the Y_IN|CLUDE va|
|00004630| 72 69 61 62 6c 65 2e 20 | 20 28 59 6f 75 20 63 6f |riable. | (You co|
|00004640| 75 6c 64 20 70 75 74 20 | 6d 6f 72 65 0a 23 20 20 |uld put |more.# |
|00004650| 20 20 20 20 20 20 74 68 | 61 6e 20 6f 6e 65 20 66 | th|an one f|
|00004660| 69 6c 65 20 68 65 72 65 | 2e 29 20 20 54 68 69 73 |ile here|.) This|
|00004670| 20 66 69 6c 65 20 69 73 | 20 61 20 70 61 72 74 20 | file is| a part |
|00004680| 6f 66 20 79 6f 75 72 20 | 73 6f 75 72 63 65 20 63 |of your |source c|
|00004690| 6f 64 65 2c 20 61 6e 64 | 0a 23 20 20 20 20 20 20 |ode, and|.# |
|000046a0| 20 20 73 68 6f 75 6c 64 | 20 62 65 20 70 72 65 73 | should| be pres|
|000046b0| 65 6e 74 20 69 6e 20 74 | 68 65 20 59 5f 42 55 49 |ent in t|he Y_BUI|
|000046c0| 4c 44 20 64 69 72 65 63 | 74 6f 72 79 2e 20 20 59 |LD direc|tory. Y|
|000046d0| 6f 72 69 63 6b 20 6d 75 | 73 74 20 66 69 6e 64 0a |orick mu|st find.|
|000046e0| 23 20 20 20 20 20 20 20 | 20 74 68 69 73 20 66 69 |# | this fi|
|000046f0| 6c 65 20 28 6f 72 20 61 | 20 73 6f 66 74 20 6c 69 |le (or a| soft li|
|00004700| 6e 6b 20 74 6f 20 69 74 | 29 20 69 6e 20 6f 6e 65 |nk to it|) in one|
|00004710| 20 6f 66 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | of the |followin|
|00004720| 67 20 74 68 72 65 65 0a | 23 20 20 20 20 20 20 20 |g three.|# |
|00004730| 20 70 6c 61 63 65 73 20 | 77 68 65 6e 20 69 74 20 | places |when it |
|00004740| 73 74 61 72 74 73 20 28 | 69 74 20 6c 6f 6f 6b 73 |starts (|it looks|
|00004750| 20 69 6e 20 74 68 69 73 | 20 6f 72 64 65 72 29 3a | in this| order):|
|00004760| 0a 23 20 20 20 20 20 20 | 20 20 20 20 20 20 20 24 |.# | $|
|00004770| 28 59 5f 4c 41 55 4e 43 | 48 29 0a 23 20 20 20 20 |(Y_LAUNC|H).# |
|00004780| 20 20 20 20 20 20 20 20 | 20 24 28 59 5f 53 49 54 | | $(Y_SIT|
|00004790| 45 29 2f 73 74 61 72 74 | 75 70 0a 23 20 20 20 20 |E)/start|up.# |
|000047a0| 20 20 20 20 20 20 20 20 | 20 24 28 59 5f 53 49 54 | | $(Y_SIT|
|000047b0| 45 29 2f 63 6f 6e 74 72 | 69 62 0a 23 20 20 20 20 |E)/contr|ib.# |
|000047c0| 20 20 20 20 49 66 20 61 | 20 66 65 77 20 6f 74 68 | If a| few oth|
|000047d0| 65 72 20 70 65 6f 70 6c | 65 20 61 74 20 79 6f 75 |er peopl|e at you|
|000047e0| 72 20 73 69 74 65 20 6d | 69 67 68 74 20 62 65 20 |r site m|ight be |
|000047f0| 69 6e 74 65 72 65 73 74 | 65 64 20 69 6e 20 6c 6f |interest|ed in lo|
|00004800| 61 64 69 6e 67 0a 23 20 | 20 20 20 20 20 20 20 59 |ading.# | Y|
|00004810| 6f 72 69 63 6b 20 76 65 | 72 73 69 6f 6e 73 20 77 |orick ve|rsions w|
|00004820| 68 69 63 68 20 75 73 65 | 20 79 6f 75 72 20 70 61 |hich use| your pa|
|00004830| 63 6b 61 67 65 2c 20 70 | 75 74 20 74 68 65 20 66 |ckage, p|ut the f|
|00004840| 69 6c 65 20 69 6e 74 6f | 0a 23 20 20 20 20 20 20 |ile into|.# |
|00004850| 20 20 24 28 59 5f 53 49 | 54 45 29 2f 63 6f 6e 74 | $(Y_SI|TE)/cont|
|00004860| 72 69 62 2e 20 20 49 66 | 20 6d 6f 73 74 20 6f 72 |rib. If| most or|
|00004870| 20 6d 61 6e 79 20 70 65 | 6f 70 6c 65 20 6e 65 65 | many pe|ople nee|
|00004880| 64 20 79 6f 75 72 20 70 | 61 63 6b 61 67 65 2c 0a |d your p|ackage,.|
|00004890| 23 20 20 20 20 20 20 20 | 20 61 72 72 61 6e 67 65 |# | arrange|
|000048a0| 20 74 6f 20 68 61 76 65 | 20 6d 79 5f 63 6f 64 65 | to have| my_code|
|000048b0| 2e 69 20 70 75 74 20 69 | 6e 74 6f 20 24 28 59 5f |.i put i|nto $(Y_|
|000048c0| 53 49 54 45 29 2f 73 74 | 61 72 74 75 70 2e 0a 23 |SITE)/st|artup..#|
|000048d0| 20 20 20 20 20 20 20 20 | 49 66 20 6f 74 68 65 72 | |If other|
|000048e0| 20 70 65 6f 70 6c 65 20 | 6d 69 67 68 74 20 77 61 | people |might wa|
|000048f0| 6e 74 20 74 6f 20 75 73 | 65 20 79 6f 75 72 20 70 |nt to us|e your p|
|00004900| 61 63 6b 61 67 65 2c 20 | 79 6f 75 20 77 69 6c 6c |ackage, |you will|
|00004910| 20 6d 61 6b 65 0a 23 20 | 20 20 20 20 20 20 20 69 | make.# | i|
|00004920| 74 20 65 61 73 69 65 72 | 20 66 6f 72 20 74 68 65 |t easier| for the|
|00004930| 6d 20 74 6f 20 70 6f 72 | 74 20 74 68 65 69 72 20 |m to por|t their |
|00004940| 63 6f 64 65 20 74 6f 20 | 61 6e 6f 74 68 65 72 20 |code to |another |
|00004950| 70 6c 61 74 66 6f 72 6d | 20 69 66 0a 23 20 20 20 |platform| if.# |
|00004960| 20 20 20 20 20 79 6f 75 | 20 70 75 74 20 79 6f 75 | you| put you|
|00004970| 72 20 69 6e 63 6c 75 64 | 65 20 66 69 6c 65 20 69 |r includ|e file i|
|00004980| 6e 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 59 5f 53 |n one of| the Y_S|
|00004990| 49 54 45 20 64 69 72 65 | 63 74 6f 72 69 65 73 2e |ITE dire|ctories.|
|000049a0| 20 20 49 66 0a 23 20 20 | 20 20 20 20 20 20 79 6f | If.# | yo|
|000049b0| 75 20 64 6f 6e 27 74 2c | 20 79 6f 75 20 61 72 65 |u don't,| you are|
|000049c0| 20 66 6f 72 63 69 6e 67 | 20 74 68 65 6d 20 74 6f | forcing| them to|
|000049d0| 20 68 75 6e 74 20 66 6f | 72 20 69 74 20 6f 6e 20 | hunt fo|r it on |
|000049e0| 65 61 63 68 20 70 6c 61 | 74 66 6f 72 6d 2e 0a 23 |each pla|tform..#|
|000049f0| 20 20 20 20 20 59 5f 4f | 54 48 45 52 53 0a 23 20 | Y_O|THERS.# |
|00004a00| 20 20 20 20 20 20 20 59 | 6f 75 20 6d 61 79 20 77 | Y|ou may w|
|00004a10| 61 6e 74 20 74 6f 20 6c | 6f 61 64 20 70 61 63 6b |ant to l|oad pack|
|00004a20| 61 67 65 73 20 79 6f 75 | 20 77 72 6f 74 65 20 70 |ages you| wrote p|
|00004a30| 72 65 76 69 6f 75 73 6c | 79 2c 20 6f 72 20 74 68 |reviousl|y, or th|
|00004a40| 61 74 0a 23 20 20 20 20 | 20 20 20 20 73 6f 6d 65 |at.# | some|
|00004a50| 6f 6e 65 20 65 6c 73 65 | 20 68 61 73 20 77 72 69 |one else| has wri|
|00004a60| 74 74 65 6e 2e 20 20 49 | 66 20 73 6f 2c 20 74 68 |tten. I|f so, th|
|00004a70| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 61 73 |e name o|f the as|
|00004a80| 73 6f 63 69 61 74 65 64 | 0a 23 20 20 20 20 20 20 |sociated|.# |
|00004a90| 20 20 22 6d 79 5f 63 6f | 64 65 2e 69 22 20 66 69 | "my_co|de.i" fi|
|00004aa0| 6c 65 28 73 29 20 6d 75 | 73 74 20 67 6f 20 69 6e |le(s) mu|st go in|
|00004ab0| 20 74 68 65 20 59 5f 4f | 54 48 45 52 53 20 76 61 | the Y_O|THERS va|
|00004ac0| 72 69 61 62 6c 65 20 28 | 73 70 61 63 65 0a 23 20 |riable (|space.# |
|00004ad0| 20 20 20 20 20 20 20 64 | 65 6c 69 6d 69 74 65 64 | d|elimited|
|00004ae0| 29 2e 20 20 41 6c 6c 20 | 74 68 65 73 65 20 66 69 |). All |these fi|
|00004af0| 6c 65 73 20 6d 75 73 74 | 20 62 65 20 66 6f 75 6e |les must| be foun|
|00004b00| 64 20 69 6e 20 65 69 74 | 68 65 72 20 24 28 59 5f |d in eit|her $(Y_|
|00004b10| 4c 41 55 4e 43 48 29 2c | 0a 23 20 20 20 20 20 20 |LAUNCH),|.# |
|00004b20| 20 20 24 28 59 5f 53 49 | 54 45 29 2c 20 6f 72 20 | $(Y_SI|TE), or |
|00004b30| 24 28 59 5f 53 49 54 45 | 29 2f 63 6f 6e 74 72 69 |$(Y_SITE|)/contri|
|00004b40| 62 20 77 68 65 6e 20 79 | 6f 75 72 20 73 70 65 63 |b when y|our spec|
|00004b50| 69 61 6c 20 59 6f 72 69 | 63 6b 20 73 74 61 72 74 |ial Yori|ck start|
|00004b60| 73 2e 0a 23 20 20 20 20 | 20 20 20 20 54 68 65 72 |s..# | Ther|
|00004b70| 65 66 6f 72 65 2c 20 69 | 66 20 74 68 65 20 61 75 |efore, i|f the au|
|00004b80| 74 68 6f 72 20 68 61 73 | 6e 27 74 20 70 6c 61 63 |thor has|n't plac|
|00004b90| 65 64 20 74 68 65 6d 20 | 69 6e 20 6f 6e 65 20 6f |ed them |in one o|
|00004ba0| 66 20 74 68 65 0a 23 20 | 20 20 20 20 20 20 20 59 |f the.# | Y|
|00004bb0| 5f 53 49 54 45 20 64 69 | 72 65 63 74 6f 72 69 65 |_SITE di|rectorie|
|00004bc0| 73 2c 20 79 6f 75 20 6d | 75 73 74 20 63 6f 70 79 |s, you m|ust copy|
|00004bd0| 20 74 68 65 6d 20 28 6f | 72 20 6d 61 6b 65 20 73 | them (o|r make s|
|00004be0| 6f 66 74 20 6c 69 6e 6b | 73 0a 23 20 20 20 20 20 |oft link|s.# |
|00004bf0| 20 20 20 74 6f 20 74 68 | 65 6d 29 20 69 6e 20 79 | to th|em) in y|
|00004c00| 6f 75 72 20 59 5f 4c 41 | 55 4e 43 48 20 64 69 72 |our Y_LA|UNCH dir|
|00004c10| 65 63 74 6f 72 79 2e 20 | 20 59 6f 75 20 6d 75 73 |ectory. | You mus|
|00004c20| 74 20 61 6c 73 6f 20 68 | 61 76 65 20 63 6f 70 69 |t also h|ave copi|
|00004c30| 65 73 0a 23 20 20 20 20 | 20 20 20 20 28 6f 72 20 |es.# | (or |
|00004c40| 6c 69 6e 6b 73 29 20 74 | 6f 20 74 68 65 6d 20 69 |links) t|o them i|
|00004c50| 6e 20 59 5f 42 55 49 4c | 44 2c 20 73 6f 20 74 68 |n Y_BUIL|D, so th|
|00004c60| 61 74 20 74 68 65 20 63 | 6f 64 67 65 72 20 63 6f |at the c|odger co|
|00004c70| 64 65 20 67 65 6e 65 72 | 61 74 6f 72 0a 23 20 20 |de gener|ator.# |
|00004c80| 20 20 20 20 20 20 63 61 | 6e 20 66 69 6e 64 20 74 | ca|n find t|
|00004c90| 68 65 6d 20 61 74 20 63 | 6f 6d 70 69 6c 65 20 74 |hem at c|ompile t|
|00004ca0| 69 6d 65 2e 20 20 49 66 | 20 74 68 65 79 20 61 72 |ime. If| they ar|
|00004cb0| 65 20 69 6e 20 65 69 74 | 68 65 72 20 6f 66 20 74 |e in eit|her of t|
|00004cc0| 68 65 0a 23 20 20 20 20 | 20 20 20 20 59 5f 53 49 |he.# | Y_SI|
|00004cd0| 54 45 20 64 69 72 65 63 | 74 6f 72 69 65 73 2c 20 |TE direc|tories, |
|00004ce0| 79 6f 75 20 6e 65 65 64 | 6e 27 74 20 77 6f 72 72 |you need|n't worr|
|00004cf0| 79 20 61 62 6f 75 74 20 | 74 68 69 73 20 64 65 74 |y about |this det|
|00004d00| 61 69 6c 2e 0a 23 20 20 | 20 20 20 59 57 52 41 50 |ail..# | YWRAP|
|00004d10| 5f 4f 0a 23 20 20 20 20 | 20 20 20 20 59 6f 75 72 |_O.# | Your|
|00004d20| 20 22 2e 69 22 20 66 69 | 6c 65 20 77 69 6c 6c 20 | ".i" fi|le will |
|00004d30| 6e 6f 72 6d 61 6c 6c 79 | 20 69 6e 63 6c 75 64 65 |normally| include|
|00004d40| 20 6f 6e 65 20 22 50 52 | 4f 54 4f 54 59 50 45 22 | one "PR|OTOTYPE"|
|00004d50| 20 63 6f 6d 6d 65 6e 74 | 20 66 6f 72 0a 23 20 20 | comment| for.# |
|00004d60| 20 20 20 20 20 20 65 61 | 63 68 20 63 6f 6d 70 69 | ea|ch compi|
|00004d70| 6c 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 79 6f 75 |led func|tion you|
|00004d80| 20 77 61 6e 74 20 74 6f | 20 63 61 6c 6c 20 66 72 | want to| call fr|
|00004d90| 6f 6d 20 74 68 65 20 69 | 6e 74 65 72 70 72 65 74 |om the i|nterpret|
|00004da0| 65 72 2e 0a 23 20 20 20 | 20 20 20 20 20 49 6e 20 |er..# | In |
|00004db0| 74 68 69 73 20 63 61 73 | 65 2c 20 61 20 77 72 61 |this cas|e, a wra|
|00004dc0| 70 70 65 72 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |pper fun|ction is|
|00004dd0| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 67 | automat|ically g|
|00004de0| 65 6e 65 72 61 74 65 64 | 20 66 6f 72 0a 23 20 20 |enerated| for.# |
|00004df0| 20 20 20 20 20 20 65 61 | 63 68 20 6f 66 20 79 6f | ea|ch of yo|
|00004e00| 75 72 20 66 75 6e 63 74 | 69 6f 6e 73 2e 20 20 54 |ur funct|ions. T|
|00004e10| 68 65 73 65 20 77 72 61 | 70 70 65 72 73 20 77 69 |hese wra|ppers wi|
|00004e20| 6c 6c 20 62 65 20 63 6f | 6d 70 69 6c 65 64 20 69 |ll be co|mpiled i|
|00004e30| 6e 74 6f 0a 23 20 20 20 | 20 20 20 20 20 61 6e 20 |nto.# | an |
|00004e40| 6f 62 6a 65 63 74 20 66 | 69 6c 65 20 63 61 6c 6c |object f|ile call|
|00004e50| 65 64 20 22 79 77 72 61 | 70 2e 6f 22 2c 20 77 68 |ed "ywra|p.o", wh|
|00004e60| 69 63 68 20 73 68 6f 75 | 6c 64 20 62 65 20 74 68 |ich shou|ld be th|
|00004e70| 65 20 76 61 6c 75 65 20 | 6f 66 20 74 68 65 0a 23 |e value |of the.#|
|00004e80| 20 20 20 20 20 20 20 20 | 59 57 52 41 50 5f 4f 20 | |YWRAP_O |
|00004e90| 76 61 72 69 61 62 6c 65 | 2e 20 20 49 66 20 79 6f |variable|. If yo|
|00004ea0| 75 20 68 61 76 65 20 77 | 72 69 74 74 65 6e 20 79 |u have w|ritten y|
|00004eb0| 6f 75 72 20 6f 77 6e 20 | 77 72 61 70 70 65 72 20 |our own |wrapper |
|00004ec0| 66 75 6e 63 74 69 6f 6e | 73 2c 0a 23 20 20 20 20 |function|s,.# |
|00004ed0| 20 20 20 20 73 6f 20 74 | 68 61 74 20 74 68 65 72 | so t|hat ther|
|00004ee0| 65 20 61 72 65 20 6e 6f | 20 22 50 52 4f 54 4f 54 |e are no| "PROTOT|
|00004ef0| 59 50 45 22 20 63 6f 6d | 6d 65 6e 74 73 20 69 6e |YPE" com|ments in|
|00004f00| 20 79 6f 75 72 20 22 2e | 69 22 20 66 69 6c 65 2c | your ".|i" file,|
|00004f10| 20 79 6f 75 0a 23 20 20 | 20 20 20 20 20 20 73 68 | you.# | sh|
|00004f20| 6f 75 6c 64 20 73 65 74 | 20 59 57 52 41 50 5f 4f |ould set| YWRAP_O|
|00004f30| 20 74 6f 20 6e 69 6c 2c | 20 73 6f 20 74 68 61 74 | to nil,| so that|
|00004f40| 20 6d 61 6b 65 20 64 6f | 65 73 6e 27 74 20 74 72 | make do|esn't tr|
|00004f50| 79 20 74 6f 20 67 65 6e | 65 72 61 74 65 0a 23 20 |y to gen|erate.# |
|00004f60| 20 20 20 20 20 20 20 77 | 72 61 70 70 65 72 73 20 | w|rappers |
|00004f70| 66 6f 72 20 79 6f 75 2e | 0a 23 20 20 20 20 20 53 |for you.|.# S|
|00004f80| 59 53 5f 4c 49 42 53 0a | 23 20 20 20 20 20 20 20 |YS_LIBS.|# |
|00004f90| 20 69 66 20 79 6f 75 72 | 20 63 6f 64 65 20 72 65 | if your| code re|
|00004fa0| 71 75 69 72 65 73 20 61 | 6e 79 20 61 64 64 69 74 |quires a|ny addit|
|00004fb0| 69 6f 6e 61 6c 20 73 79 | 73 74 65 6d 20 6c 69 62 |ional sy|stem lib|
|00004fc0| 72 61 72 69 65 73 20 28 | 62 65 79 6f 6e 64 0a 23 |raries (|beyond.#|
|00004fd0| 20 20 20 20 20 20 20 20 | 2d 6c 58 31 31 20 2d 6c | |-lX11 -l|
|00004fe0| 6d 20 2d 6c 63 29 2c 20 | 6c 69 73 74 20 74 68 65 |m -lc), |list the|
|00004ff0| 6d 20 68 65 72 65 2e 20 | 20 44 65 70 65 6e 64 65 |m here. | Depende|
|00005000| 6e 74 20 6c 69 62 72 61 | 72 69 65 73 20 6d 75 73 |nt libra|ries mus|
|00005010| 74 20 62 65 0a 23 20 20 | 20 20 20 20 20 20 6c 69 |t be.# | li|
|00005020| 73 74 65 64 20 62 65 66 | 6f 72 65 20 74 68 65 20 |sted bef|ore the |
|00005030| 6c 69 62 72 61 72 69 65 | 73 20 6f 6e 20 77 68 69 |librarie|s on whi|
|00005040| 63 68 20 74 68 65 79 20 | 64 65 70 65 6e 64 2e 20 |ch they |depend. |
|00005050| 20 41 70 70 72 6f 70 72 | 69 61 74 65 0a 23 20 20 | Appropr|iate.# |
|00005060| 20 20 20 20 20 20 2d 4c | 20 6f 70 74 69 6f 6e 73 | -L| options|
|00005070| 20 6d 75 73 74 20 62 65 | 20 69 6e 63 6c 75 64 65 | must be| include|
|00005080| 64 20 74 6f 20 73 70 65 | 63 69 66 79 20 74 68 65 |d to spe|cify the|
|00005090| 20 64 69 72 65 63 74 6f | 72 69 65 73 20 69 6e 20 | directo|ries in |
|000050a0| 77 68 69 63 68 0a 23 20 | 20 20 20 20 20 20 20 79 |which.# | y|
|000050b0| 6f 75 72 20 6c 69 62 72 | 61 72 69 65 73 20 6d 61 |our libr|aries ma|
|000050c0| 79 20 62 65 20 66 6f 75 | 6e 64 2e 20 20 46 6f 72 |y be fou|nd. For|
|000050d0| 74 72 61 6e 20 75 73 65 | 73 20 61 64 64 69 74 69 |tran use|s additi|
|000050e0| 6f 6e 61 6c 20 6c 69 62 | 72 61 72 69 65 73 2e 0a |onal lib|raries..|
|000050f0| 23 20 20 20 20 20 20 20 | 20 49 66 20 61 6e 79 20 |# | If any |
|00005100| 6f 66 20 79 6f 75 72 20 | 73 6f 75 72 63 65 20 63 |of your |source c|
|00005110| 6f 64 65 20 69 73 20 46 | 6f 72 74 72 61 6e 2c 20 |ode is F|ortran, |
|00005120| 70 75 74 20 22 24 28 46 | 4f 52 54 52 41 4e 5f 4c |put "$(F|ORTRAN_L|
|00005130| 49 42 53 29 22 0a 23 20 | 20 20 20 20 20 20 20 74 |IBS)".# | t|
|00005140| 6f 20 67 65 74 20 74 68 | 65 20 62 61 73 69 63 20 |o get th|e basic |
|00005150| 6c 69 62 72 61 72 69 65 | 73 20 6e 65 65 64 65 64 |librarie|s needed|
|00005160| 20 62 79 20 74 68 65 20 | 46 6f 72 74 72 61 6e 20 | by the |Fortran |
|00005170| 6f 6e 20 77 68 61 74 65 | 76 65 72 0a 23 20 20 20 |on whate|ver.# |
|00005180| 20 20 20 20 20 70 6c 61 | 74 66 6f 72 6d 20 79 6f | pla|tform yo|
|00005190| 75 20 61 72 65 20 63 6f | 6d 70 69 6c 69 6e 67 20 |u are co|mpiling |
|000051a0| 6f 6e 2e 20 20 53 6f 6d | 65 20 70 6c 61 74 66 6f |on. Som|e platfo|
|000051b0| 72 6d 73 20 6d 61 79 20 | 68 61 76 65 20 61 64 64 |rms may |have add|
|000051c0| 69 74 69 6f 6e 61 6c 0a | 23 20 20 20 20 20 20 20 |itional.|# |
|000051d0| 20 72 65 71 75 69 72 65 | 6d 65 6e 74 73 3b 20 66 | require|ments; f|
|000051e0| 69 6e 64 69 6e 67 20 74 | 68 65 73 65 20 61 6e 65 |inding t|hese ane|
|000051f0| 77 20 6f 6e 20 65 61 63 | 68 20 70 6c 61 74 66 6f |w on eac|h platfo|
|00005200| 72 6d 20 79 6f 75 20 70 | 6f 72 74 20 74 6f 20 69 |rm you p|ort to i|
|00005210| 73 0a 23 20 20 20 20 20 | 20 20 20 6f 6e 65 20 6f |s.# | one o|
|00005220| 66 20 74 68 65 20 6a 6f | 79 73 20 6f 66 20 46 6f |f the jo|ys of Fo|
|00005230| 72 74 72 61 6e 20 70 72 | 6f 67 72 61 6d 6d 69 6e |rtran pr|ogrammin|
|00005240| 67 2e 0a 23 20 20 20 20 | 20 46 4f 52 54 52 41 4e |g..# | FORTRAN|
|00005250| 5f 53 54 59 4c 45 0a 23 | 20 20 20 20 20 20 20 20 |_STYLE.#| |
|00005260| 4e 65 77 20 63 6f 64 65 | 20 73 68 6f 75 6c 64 20 |New code| should |
|00005270| 62 65 20 77 72 69 74 74 | 65 6e 20 69 6e 20 41 4e |be writt|en in AN|
|00005280| 53 49 20 43 2c 20 77 68 | 69 63 68 20 69 73 20 66 |SI C, wh|ich is f|
|00005290| 61 72 20 6d 6f 72 65 20 | 70 6f 72 74 61 62 6c 65 |ar more |portable|
|000052a0| 0a 23 20 20 20 20 20 20 | 20 20 74 68 61 6e 20 46 |.# | than F|
|000052b0| 6f 72 74 72 61 6e 2e 20 | 20 54 68 65 20 6d 61 6a |ortran. | The maj|
|000052c0| 6f 72 20 70 6f 72 74 61 | 62 69 6c 69 74 79 20 70 |or porta|bility p|
|000052d0| 72 6f 62 6c 65 6d 20 69 | 6e 20 46 6f 72 74 72 61 |roblem i|n Fortra|
|000052e0| 6e 20 69 73 20 74 68 61 | 74 0a 23 20 20 20 20 20 |n is tha|t.# |
|000052f0| 20 20 20 74 68 65 20 22 | 64 6f 75 62 6c 65 20 70 | the "|double p|
|00005300| 72 65 63 69 73 69 6f 6e | 22 20 64 61 74 61 20 74 |recision|" data t|
|00005310| 79 70 65 20 69 73 20 6e | 65 63 65 73 73 61 72 79 |ype is n|ecessary|
|00005320| 20 6f 6e 20 77 6f 72 6b | 73 74 61 74 69 6f 6e 73 | on work|stations|
|00005330| 2c 0a 23 20 20 20 20 20 | 20 20 20 62 75 74 20 70 |,.# | but p|
|00005340| 72 6f 64 75 63 65 73 20 | 75 73 65 6c 65 73 73 20 |roduces |useless |
|00005350| 63 6f 64 65 20 6f 6e 20 | 43 72 61 79 73 2e 20 20 |code on |Crays. |
|00005360| 49 66 20 79 6f 75 72 20 | 46 6f 72 74 72 61 6e 20 |If your |Fortran |
|00005370| 63 6f 64 65 0a 23 20 20 | 20 20 20 20 20 20 64 65 |code.# | de|
|00005380| 63 6c 61 72 65 73 20 61 | 6c 6c 20 72 65 61 6c 20 |clares a|ll real |
|00005390| 76 61 72 69 61 62 6c 65 | 73 20 22 64 6f 75 62 6c |variable|s "doubl|
|000053a0| 65 20 70 72 65 63 69 73 | 69 6f 6e 22 2c 20 74 72 |e precis|ion", tr|
|000053b0| 79 20 73 65 74 74 69 6e | 67 0a 23 20 20 20 20 20 |y settin|g.# |
|000053c0| 20 20 20 46 4f 52 54 52 | 41 4e 5f 53 54 59 4c 45 | FORTR|AN_STYLE|
|000053d0| 20 74 6f 20 22 24 28 57 | 4b 53 5f 46 4f 52 54 52 | to "$(W|KS_FORTR|
|000053e0| 41 4e 29 22 2c 20 61 6e | 64 20 69 74 20 6d 61 79 |AN)", an|d it may|
|000053f0| 20 63 6f 6d 70 69 6c 65 | 20 22 61 73 20 69 73 22 | compile| "as is"|
|00005400| 0a 23 20 20 20 20 20 20 | 20 20 6f 6e 20 61 20 43 |.# | on a C|
|00005410| 72 61 79 2e 20 20 43 6f | 6e 76 65 72 73 65 6c 79 |ray. Co|nversely|
|00005420| 2c 20 69 66 20 72 65 61 | 6c 20 76 61 72 69 61 62 |, if rea|l variab|
|00005430| 6c 65 73 20 61 72 65 20 | 64 65 63 6c 61 72 65 64 |les are |declared|
|00005440| 20 22 72 65 61 6c 22 2c | 0a 23 20 20 20 20 20 20 | "real",|.# |
|00005450| 20 20 74 72 79 20 61 20 | 46 4f 52 54 52 41 4e 5f | try a |FORTRAN_|
|00005460| 53 54 59 4c 45 20 6f 66 | 20 22 24 28 43 52 41 59 |STYLE of| "$(CRAY|
|00005470| 5f 46 4f 52 54 52 41 4e | 29 22 2e 20 20 49 66 20 |_FORTRAN|)". If |
|00005480| 79 6f 75 20 63 61 6e 27 | 74 20 67 65 74 20 6f 6e |you can'|t get on|
|00005490| 65 0a 23 20 20 20 20 20 | 20 20 20 63 68 6f 69 63 |e.# | choic|
|000054a0| 65 20 74 6f 20 77 6f 72 | 6b 20 6f 6e 20 61 6c 6c |e to wor|k on all|
|000054b0| 20 70 6c 61 74 66 6f 72 | 6d 73 2c 20 79 6f 75 20 | platfor|ms, you |
|000054c0| 77 69 6c 6c 20 62 65 20 | 73 74 75 63 6b 20 77 69 |will be |stuck wi|
|000054d0| 74 68 20 6d 61 69 6e 74 | 61 69 6e 69 6e 67 0a 23 |th maint|aining.#|
|000054e0| 20 20 20 20 20 20 20 20 | 61 20 73 65 70 61 72 61 | |a separa|
|000054f0| 74 65 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 79 6f |te versi|on of yo|
|00005500| 75 72 20 46 6f 72 74 72 | 61 6e 20 73 6f 75 72 63 |ur Fortr|an sourc|
|00005510| 65 20 66 6f 72 20 65 61 | 63 68 20 70 6c 61 74 66 |e for ea|ch platf|
|00005520| 6f 72 6d 2e 20 20 53 69 | 6e 63 65 0a 23 20 20 20 |orm. Si|nce.# |
|00005530| 20 20 20 20 20 74 68 65 | 20 43 72 61 79 73 20 61 | the| Crays a|
|00005540| 72 65 20 74 68 65 20 6f | 6e 6c 79 20 64 65 76 69 |re the o|nly devi|
|00005550| 61 6e 74 20 6d 61 63 68 | 69 6e 65 20 6e 6f 77 2c |ant mach|ine now,|
|00005560| 20 61 6e 64 20 73 69 6e | 63 65 20 74 68 65 72 65 | and sin|ce there|
|00005570| 20 61 72 65 0a 23 20 20 | 20 20 20 20 20 20 73 6f | are.# | so|
|00005580| 6d 65 20 77 6f 72 6b 73 | 74 61 74 69 6f 6e 73 20 |me works|tations |
|00005590| 66 6f 72 20 77 68 69 63 | 68 20 74 68 65 72 65 20 |for whic|h there |
|000055a0| 69 73 20 6e 6f 20 70 6f | 73 73 69 62 6c 65 20 24 |is no po|ssible $|
|000055b0| 28 43 52 41 59 5f 46 4f | 52 54 52 41 4e 29 0a 23 |(CRAY_FO|RTRAN).#|
|000055c0| 20 20 20 20 20 20 20 20 | 73 77 69 74 63 68 2c 20 | |switch, |
|000055d0| 49 20 73 74 72 6f 6e 67 | 6c 79 20 75 72 67 65 20 |I strong|ly urge |
|000055e0| 79 6f 75 20 74 6f 20 75 | 73 65 20 6f 6e 6c 79 20 |you to u|se only |
|000055f0| 24 28 57 4b 53 5f 46 4f | 52 54 52 41 4e 29 0a 23 |$(WKS_FO|RTRAN).#|
|00005600| 20 20 20 20 20 43 4c 45 | 41 4e 5f 55 50 0a 23 20 | CLE|AN_UP.# |
|00005610| 20 20 20 20 54 49 44 59 | 5f 55 50 0a 23 20 20 20 | TIDY|_UP.# |
|00005620| 20 20 20 20 20 50 75 74 | 20 61 6e 79 20 73 70 65 | Put| any spe|
|00005630| 63 69 61 6c 20 66 69 6c | 65 6e 61 6d 65 73 20 74 |cial fil|enames t|
|00005640| 6f 20 62 65 20 72 65 6d | 6f 76 65 64 20 62 79 20 |o be rem|oved by |
|00005650| 74 68 65 20 22 63 6c 65 | 61 6e 22 20 61 6e 64 20 |the "cle|an" and |
|00005660| 22 74 69 64 79 22 0a 23 | 20 20 20 20 20 20 20 20 |"tidy".#| |
|00005670| 74 61 72 67 65 74 73 20 | 68 65 72 65 2e 20 20 44 |targets |here. D|
|00005680| 6f 6e 27 74 20 77 6f 72 | 72 79 20 61 62 6f 75 74 |on't wor|ry about|
|00005690| 20 6f 62 6a 65 63 74 20 | 66 69 6c 65 73 2c 20 6c | object |files, l|
|000056a0| 69 62 72 61 72 79 20 66 | 69 6c 65 73 2c 0a 23 20 |ibrary f|iles,.# |
|000056b0| 20 20 20 20 20 20 20 61 | 6e 64 20 74 68 65 20 6c | a|nd the l|
|000056c0| 69 6b 65 20 2d 2d 20 63 | 6c 65 61 6e 20 61 6e 64 |ike -- c|lean and|
|000056d0| 20 74 69 64 79 20 61 6c | 72 65 61 64 79 20 6b 6e | tidy al|ready kn|
|000056e0| 6f 77 20 61 62 6f 75 74 | 20 74 68 65 6d 2e 0a 0a |ow about| them...|
|000056f0| 23 20 41 66 74 65 72 20 | 79 6f 75 20 68 61 76 65 |# After |you have|
|00005700| 20 73 65 74 20 61 6c 6c | 20 6f 66 20 74 68 65 73 | set all| of thes|
|00005710| 65 20 76 61 72 69 61 62 | 6c 65 73 2c 20 69 6e 20 |e variab|les, in |
|00005720| 74 68 65 20 6e 65 78 74 | 20 73 65 63 74 69 6f 6e |the next| section|
|00005730| 20 6f 66 20 74 68 69 73 | 0a 23 20 4d 61 6b 65 66 | of this|.# Makef|
|00005740| 69 6c 65 2c 20 79 6f 75 | 20 6e 65 65 64 20 74 6f |ile, you| need to|
|00005750| 20 64 65 73 63 72 69 62 | 65 20 74 68 65 20 22 74 | describ|e the "t|
|00005760| 61 72 67 65 74 73 22 20 | 77 68 69 63 68 20 6d 61 |argets" |which ma|
|00005770| 6b 65 20 77 69 6c 6c 20 | 62 75 69 6c 64 2e 0a 23 |ke will |build..#|
|00005780| 20 54 68 65 20 77 68 6f | 6c 65 20 63 75 73 74 6f | The who|le custo|
|00005790| 6d 20 59 6f 72 69 63 6b | 20 63 6f 64 65 20 22 6d |m Yorick| code "m|
|000057a0| 79 5f 63 6f 64 65 22 2c | 20 65 61 63 68 20 6f 62 |y_code",| each ob|
|000057b0| 6a 65 63 74 20 66 69 6c | 65 20 22 2e 6f 22 2c 20 |ject fil|e ".o", |
|000057c0| 61 6e 64 0a 23 20 74 68 | 65 20 6c 69 62 72 61 72 |and.# th|e librar|
|000057d0| 79 20 22 6c 69 62 6d 79 | 5f 63 6f 64 65 2e 61 22 |y "libmy|_code.a"|
|000057e0| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 74 68 6f 73 | contain|ing thos|
|000057f0| 65 20 6f 62 6a 65 63 74 | 20 66 69 6c 65 73 20 61 |e object| files a|
|00005800| 72 65 20 74 68 65 0a 23 | 20 74 61 72 67 65 74 73 |re the.#| targets|
|00005810| 20 79 6f 75 20 61 72 65 | 20 6d 6f 73 74 6c 79 20 | you are| mostly |
|00005820| 69 6e 74 65 72 65 73 74 | 65 64 20 69 6e 2e 0a 0a |interest|ed in...|
|00005830| 23 20 20 20 20 20 61 6c | 6c 3a 3a 0a 23 20 20 20 |# al|l::.# |
|00005840| 20 20 20 20 20 54 68 65 | 20 66 69 72 73 74 20 74 | The| first t|
|00005850| 61 72 67 65 74 20 69 73 | 20 61 6c 77 61 79 73 20 |arget is| always |
|00005860| 22 61 6c 6c 3a 3a 22 2e | 20 20 49 74 20 69 73 20 |"all::".| It is |
|00005870| 73 70 65 63 69 61 6c 3b | 20 69 74 27 73 20 77 68 |special;| it's wh|
|00005880| 61 74 0a 23 20 20 20 20 | 20 20 20 20 68 61 70 70 |at.# | happ|
|00005890| 65 6e 73 20 77 68 65 6e | 20 79 6f 75 20 6a 75 73 |ens when| you jus|
|000058a0| 74 20 74 79 70 65 20 22 | 6d 61 6b 65 22 2e 20 20 |t type "|make". |
|000058b0| 49 66 20 79 6f 75 20 73 | 65 6c 65 63 74 65 64 20 |If you s|elected |
|000058c0| 74 68 65 20 43 4f 44 45 | 5f 4e 41 4d 45 0a 23 20 |the CODE|_NAME.# |
|000058d0| 20 20 20 20 20 20 20 76 | 61 72 69 61 62 6c 65 2c | v|ariable,|
|000058e0| 20 75 73 65 20 74 68 61 | 74 20 76 65 72 73 69 6f | use tha|t versio|
|000058f0| 6e 20 6f 66 20 22 61 6c | 6c 3a 3a 22 3b 20 69 66 |n of "al|l::"; if|
|00005900| 20 79 6f 75 20 73 65 6c | 65 63 74 65 64 20 4e 4f | you sel|ected NO|
|00005910| 4e 5f 53 48 41 52 41 42 | 4c 45 0a 23 20 20 20 20 |N_SHARAB|LE.# |
|00005920| 20 20 20 20 75 73 65 20 | 74 68 65 20 6f 74 68 65 | use |the othe|
|00005930| 72 20 76 65 72 73 69 6f | 6e 2e 0a 23 20 20 20 20 |r versio|n..# |
|00005940| 20 64 69 73 74 72 69 62 | 3a 3a 0a 23 20 20 20 20 | distrib|::.# |
|00005950| 20 20 20 20 41 20 64 69 | 73 74 72 69 62 20 74 61 | A di|strib ta|
|00005960| 72 67 65 74 20 69 73 20 | 68 61 6e 64 79 20 66 6f |rget is |handy fo|
|00005970| 72 20 63 75 74 74 69 6e | 67 20 61 20 63 6f 6d 70 |r cuttin|g a comp|
|00005980| 72 65 73 73 65 64 20 74 | 61 72 20 66 69 6c 65 0a |ressed t|ar file.|
|00005990| 23 20 20 20 20 20 20 20 | 20 73 75 69 74 61 62 6c |# | suitabl|
|000059a0| 65 20 66 6f 72 20 6d 6f | 76 69 6e 67 20 74 68 69 |e for mo|ving thi|
|000059b0| 73 20 63 6f 64 65 20 74 | 6f 20 6f 74 68 65 72 20 |s code t|o other |
|000059c0| 73 69 74 65 73 2e 20 20 | 53 65 65 20 74 68 65 20 |sites. |See the |
|000059d0| 73 61 6d 70 6c 65 2e 0a | 23 20 20 20 20 20 6d 79 |sample..|# my|
|000059e0| 5f 6f 62 6a 2e 6f 3a 20 | 20 6d 79 5f 68 65 61 64 |_obj.o: | my_head|
|000059f0| 31 2e 68 20 6d 79 5f 68 | 65 61 64 32 2e 68 0a 23 |1.h my_h|ead2.h.#|
|00005a00| 20 20 20 20 20 20 20 20 | 45 61 63 68 20 6f 66 20 | |Each of |
|00005a10| 79 6f 75 72 20 43 20 73 | 6f 75 72 63 65 20 66 69 |your C s|ource fi|
|00005a20| 6c 65 73 20 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |les shou|ld have |
|00005a30| 61 20 6c 69 6e 65 20 6c | 69 6b 65 20 74 68 69 73 |a line l|ike this|
|00005a40| 20 6f 6e 65 0a 23 20 20 | 20 20 20 20 20 20 73 74 | one.# | st|
|00005a50| 61 74 69 6e 67 20 69 74 | 73 20 28 6c 6f 63 61 6c |ating it|s (local|
|00005a60| 29 20 68 65 61 64 65 72 | 20 64 65 70 65 6e 64 65 |) header| depende|
|00005a70| 6e 63 69 65 73 2c 20 69 | 66 20 61 6e 79 2e 20 20 |ncies, i|f any. |
|00005a80| 59 6f 75 20 6d 69 67 68 | 74 20 77 61 6e 74 20 74 |You migh|t want t|
|00005a90| 6f 0a 23 20 20 20 20 20 | 20 20 20 69 6e 63 6c 75 |o.# | inclu|
|00005aa0| 64 65 20 73 70 65 63 69 | 61 6c 20 63 6f 6d 70 69 |de speci|al compi|
|00005ab0| 6c 65 20 69 6e 73 74 72 | 75 63 74 69 6f 6e 73 20 |le instr|uctions |
|00005ac0| 28 75 73 75 61 6c 6c 79 | 20 2d 44 20 6d 61 63 72 |(usually| -D macr|
|00005ad0| 6f 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 29 0a 23 |o defini|tions).#|
|00005ae0| 20 20 20 20 20 20 20 20 | 68 65 72 65 20 61 73 20 | |here as |
|00005af0| 77 65 6c 6c 2e 20 20 46 | 4f 52 54 52 41 4e 20 73 |well. F|ORTRAN s|
|00005b00| 6f 75 72 63 65 20 75 73 | 75 61 6c 6c 79 20 64 6f |ource us|ually do|
|00005b10| 65 73 6e 27 74 20 6e 65 | 65 64 20 65 69 74 68 65 |esn't ne|ed eithe|
|00005b20| 72 0a 23 20 20 20 20 20 | 20 20 20 64 65 70 65 6e |r.# | depen|
|00005b30| 64 65 6e 63 69 65 73 20 | 6f 72 20 73 70 65 63 69 |dencies |or speci|
|00005b40| 61 6c 20 63 6f 6d 70 69 | 6c 65 20 69 6e 73 74 72 |al compi|le instr|
|00005b50| 75 63 74 69 6f 6e 73 3b | 20 79 6f 75 20 64 6f 6e |uctions;| you don|
|00005b60| 27 74 20 6e 65 65 64 0a | 23 20 20 20 20 20 20 20 |'t need.|# |
|00005b70| 20 74 6f 20 6c 69 73 74 | 20 61 6e 79 20 73 70 65 | to list| any spe|
|00005b80| 63 69 66 69 63 20 22 2e | 6f 22 20 74 61 72 67 65 |cific ".|o" targe|
|00005b90| 74 73 20 66 6f 72 20 73 | 75 63 68 20 73 6f 75 72 |ts for s|uch sour|
|00005ba0| 63 65 73 2e 0a 0a 23 20 | 2d 2d 2d 2d 2d 2d 2d 2d |ces...# |--------|
|00005bb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005bc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005bd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005be0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005bf0| 2d 2d 2d 0a 23 20 4d 6f | 76 69 6e 67 20 79 6f 75 |---.# Mo|ving you|
|00005c00| 72 20 53 70 65 63 69 61 | 6c 20 56 65 72 73 69 6f |r Specia|l Versio|
|00005c10| 6e 20 6f 66 20 59 6f 72 | 69 63 6b 20 74 6f 20 41 |n of Yor|ick to A|
|00005c20| 6e 6f 74 68 65 72 20 44 | 69 72 65 63 74 6f 72 79 |nother D|irectory|
|00005c30| 0a 23 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.# -----|--------|
|00005c40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005c50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005c60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 0a 23 |--------|-----..#|
|00005c70| 20 49 66 20 59 5f 42 55 | 49 4c 44 20 69 73 20 6e | If Y_BU|ILD is n|
|00005c80| 6f 74 20 77 68 65 72 65 | 20 79 6f 75 20 77 61 6e |ot where| you wan|
|00005c90| 74 20 79 6f 75 72 20 73 | 70 65 63 69 61 6c 20 76 |t your s|pecial v|
|00005ca0| 65 72 73 69 6f 6e 20 6f | 66 20 59 6f 72 69 63 6b |ersion o|f Yorick|
|00005cb0| 2c 0a 23 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 6d |,.# you |should m|
|00005cc0| 6f 76 65 20 74 68 65 20 | 69 6e 63 6c 75 64 65 20 |ove the |include |
|00005cd0| 66 69 6c 65 28 73 29 20 | 6d 65 6e 74 69 6f 6e 65 |file(s) |mentione|
|00005ce0| 64 20 69 6e 20 59 5f 49 | 4e 43 4c 55 44 45 20 69 |d in Y_I|NCLUDE i|
|00005cf0| 6e 74 6f 0a 23 20 65 69 | 74 68 65 72 20 24 28 59 |nto.# ei|ther $(Y|
|00005d00| 5f 53 49 54 45 29 2f 63 | 6f 6e 74 72 69 62 20 28 |_SITE)/c|ontrib (|
|00005d10| 69 66 20 6f 6e 6c 79 20 | 61 20 66 65 77 20 6f 74 |if only |a few ot|
|00005d20| 68 65 72 20 70 65 6f 70 | 6c 65 20 6d 69 67 68 74 |her peop|le might|
|00005d30| 20 62 65 0a 23 20 69 6e | 74 65 72 65 73 74 65 64 | be.# in|terested|
|00005d40| 20 69 6e 20 75 73 69 6e | 67 20 79 6f 75 72 20 70 | in usin|g your p|
|00005d50| 61 63 6b 61 67 65 29 2c | 20 6f 72 20 24 28 59 5f |ackage),| or $(Y_|
|00005d60| 53 49 54 45 29 2f 73 74 | 61 72 74 75 70 20 28 69 |SITE)/st|artup (i|
|00005d70| 66 20 6d 6f 73 74 20 6f | 72 0a 23 20 6d 61 6e 79 |f most o|r.# many|
|00005d80| 20 63 75 73 74 6f 6d 20 | 59 6f 72 69 63 6b 20 62 | custom |Yorick b|
|00005d90| 75 69 6c 64 65 72 73 20 | 77 69 6c 6c 20 75 73 65 |uilders |will use|
|00005da0| 20 79 6f 75 72 20 70 61 | 63 6b 61 67 65 29 2e 20 | your pa|ckage). |
|00005db0| 20 54 68 65 20 63 6f 6e | 73 74 72 61 69 6e 74 20 | The con|straint |
|00005dc0| 69 73 0a 23 20 74 68 61 | 74 20 61 6c 6c 20 6f 66 |is.# tha|t all of|
|00005dd0| 20 74 68 65 20 69 6e 63 | 6c 75 64 65 20 66 69 6c | the inc|lude fil|
|00005de0| 65 73 20 79 6f 75 72 20 | 76 65 72 73 69 6f 6e 20 |es your |version |
|00005df0| 6e 65 65 64 73 20 74 6f | 20 73 74 61 72 74 20 28 |needs to| start (|
|00005e00| 59 5f 49 4e 43 4c 55 44 | 45 0a 23 20 61 6e 64 20 |Y_INCLUD|E.# and |
|00005e10| 59 5f 4f 54 48 45 52 53 | 29 20 6d 75 73 74 20 62 |Y_OTHERS|) must b|
|00005e20| 65 20 65 69 74 68 65 72 | 20 69 6e 20 6f 6e 65 20 |e either| in one |
|00005e30| 6f 66 20 74 68 6f 73 65 | 20 64 69 72 65 63 74 6f |of those| directo|
|00005e40| 72 69 65 73 2c 20 6f 72 | 20 69 6e 0a 23 20 74 68 |ries, or| in.# th|
|00005e50| 65 20 59 5f 4c 41 55 4e | 43 48 20 64 69 72 65 63 |e Y_LAUN|CH direc|
|00005e60| 74 6f 72 79 20 28 73 65 | 65 20 74 68 65 20 64 69 |tory (se|e the di|
|00005e70| 73 63 75 73 73 69 6f 6e | 20 6f 66 20 59 5f 49 4e |scussion| of Y_IN|
|00005e80| 43 4c 55 44 45 20 61 62 | 6f 76 65 29 2e 0a 23 20 |CLUDE ab|ove)..# |
|00005e90| 59 6f 75 20 73 68 6f 75 | 6c 64 20 6d 6f 76 65 20 |You shou|ld move |
|00005ea0| 79 6f 75 72 20 70 61 63 | 6b 61 67 65 20 6c 69 62 |your pac|kage lib|
|00005eb0| 72 61 72 79 20 69 6e 74 | 6f 20 65 69 74 68 65 72 |rary int|o either|
|00005ec0| 20 24 28 59 5f 48 4f 4d | 45 29 2f 2e 2e 2f 6c 69 | $(Y_HOM|E)/../li|
|00005ed0| 62 20 6f 72 0a 23 20 24 | 28 59 5f 48 4f 4d 45 29 |b or.# $|(Y_HOME)|
|00005ee0| 2f 2e 2e 2f 63 6f 6e 74 | 72 69 62 2c 20 63 6f 72 |/../cont|rib, cor|
|00005ef0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 74 6f 20 74 68 |respondi|ng to th|
|00005f00| 65 20 69 6e 63 6c 75 64 | 65 20 66 69 6c 65 28 73 |e includ|e file(s|
|00005f10| 29 2e 0a 0a 23 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |)...# --|--------|
|00005f20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005f30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005f40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005f50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005f60| 2d 0a 23 20 50 6f 72 74 | 69 6e 67 20 79 6f 75 72 |-.# Port|ing your|
|00005f70| 20 53 70 65 63 69 61 6c | 20 56 65 72 73 69 6f 6e | Special| Version|
|00005f80| 20 6f 66 20 59 6f 72 69 | 63 6b 20 74 6f 20 41 6e | of Yori|ck to An|
|00005f90| 6f 74 68 65 72 20 4d 61 | 63 68 69 6e 65 0a 23 20 |other Ma|chine.# |
|00005fa0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005fb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005fc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005fd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 0a 23 20 41 66 74 |--------|-..# Aft|
|00005fe0| 65 72 20 73 61 76 69 6e | 67 20 79 6f 75 72 20 65 |er savin|g your e|
|00005ff0| 78 65 63 75 74 61 62 6c | 65 20 28 6d 79 5f 63 6f |xecutabl|e (my_co|
|00006000| 64 65 29 20 61 6e 64 20 | 6c 69 62 72 61 72 79 20 |de) and |library |
|00006010| 28 6c 69 62 6d 79 5f 63 | 6f 64 65 2e 61 29 2c 0a |(libmy_c|ode.a),.|
|00006020| 23 20 64 6f 20 61 0a 23 | 20 20 20 20 20 20 6d 61 |# do a.#| ma|
|00006030| 6b 65 20 63 6c 65 61 6e | 0a 23 20 54 68 65 6e 20 |ke clean|.# Then |
|00006040| 75 73 65 20 74 68 65 20 | 74 61 72 20 75 74 69 6c |use the |tar util|
|00006050| 69 74 79 20 74 6f 20 6d | 61 6b 65 20 61 20 63 6f |ity to m|ake a co|
|00006060| 70 79 20 6f 66 20 59 5f | 42 55 49 4c 44 3a 0a 23 |py of Y_|BUILD:.#|
|00006070| 20 20 20 20 20 20 63 64 | 20 2e 2e 0a 23 20 20 20 | cd| ...# |
|00006080| 20 20 20 74 61 72 20 63 | 76 66 20 6d 79 5f 63 6f | tar c|vf my_co|
|00006090| 64 65 2e 74 61 72 20 4d | 79 5f 63 6f 64 65 0a 23 |de.tar M|y_code.#|
|000060a0| 20 28 61 73 73 75 6d 69 | 6e 67 20 4d 79 5f 63 6f | (assumi|ng My_co|
|000060b0| 64 65 20 69 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |de is th|e name o|
|000060c0| 66 20 79 6f 75 72 20 59 | 5f 42 55 49 4c 44 20 64 |f your Y|_BUILD d|
|000060d0| 69 72 65 63 74 6f 72 79 | 29 2e 0a 23 20 4d 6f 76 |irectory|)..# Mov|
|000060e0| 65 20 6d 79 5f 63 6f 64 | 65 2e 74 61 72 20 74 6f |e my_cod|e.tar to|
|000060f0| 20 74 68 65 20 6e 65 77 | 20 70 6c 61 74 66 6f 72 | the new| platfor|
|00006100| 6d 20 61 6e 64 20 74 79 | 70 65 3a 0a 23 20 20 20 |m and ty|pe:.# |
|00006110| 20 20 20 74 61 72 20 78 | 76 66 20 6d 79 5f 63 6f | tar x|vf my_co|
|00006120| 64 65 2e 74 61 72 0a 23 | 20 20 20 20 20 20 72 6d |de.tar.#| rm|
|00006130| 20 6d 79 5f 63 6f 64 65 | 2e 74 61 72 0a 23 20 20 | my_code|.tar.# |
|00006140| 20 20 20 20 63 64 20 4d | 79 5f 63 6f 64 65 0a 23 | cd M|y_code.#|
|00006150| 20 54 68 65 6e 20 65 64 | 69 74 20 4d 61 6b 65 66 | Then ed|it Makef|
|00006160| 69 6c 65 2c 20 72 65 70 | 6c 61 63 69 6e 67 20 74 |ile, rep|lacing t|
|00006170| 68 65 20 6f 6e 65 20 6c | 69 6e 65 20 77 68 69 63 |he one l|ine whic|
|00006180| 68 20 73 65 74 73 20 65 | 78 65 63 5f 70 72 65 66 |h sets e|xec_pref|
|00006190| 69 78 20 77 69 74 68 0a | 23 20 74 68 65 20 70 61 |ix with.|# the pa|
|000061a0| 74 68 6e 61 6d 65 20 6f | 66 20 74 68 65 20 59 6f |thname o|f the Yo|
|000061b0| 72 69 63 6b 20 68 6f 6d | 65 20 64 69 72 65 63 74 |rick hom|e direct|
|000061c0| 6f 72 79 20 6f 6e 20 74 | 68 65 20 6e 65 77 20 70 |ory on t|he new p|
|000061d0| 6c 61 74 66 6f 72 6d 2e | 0a 23 20 45 78 69 74 20 |latform.|.# Exit |
|000061e0| 74 68 65 20 65 64 69 74 | 6f 72 20 61 6e 64 20 74 |the edit|or and t|
|000061f0| 79 70 65 3a 0a 23 20 20 | 20 20 20 20 6d 61 6b 65 |ype:.# | make|
|00006200| 20 4d 61 6b 65 66 69 6c | 65 0a 23 20 20 20 20 20 | Makefil|e.# |
|00006210| 20 6d 61 6b 65 0a 23 20 | 20 20 20 20 20 6d 61 6b | make.# | mak|
|00006220| 65 20 74 69 64 79 0a 23 | 20 49 66 20 6e 65 63 65 |e tidy.#| If nece|
|00006230| 73 73 61 72 79 2c 20 6d | 6f 76 65 20 79 6f 75 72 |ssary, m|ove your|
|00006240| 20 69 6e 63 6c 75 64 65 | 20 66 69 6c 65 28 73 29 | include| file(s)|
|00006250| 20 69 6e 74 6f 20 59 5f | 53 49 54 45 20 28 6f 72 | into Y_|SITE (or|
|00006260| 20 69 74 73 20 63 6f 6e | 74 72 69 62 29 0a 23 20 | its con|trib).# |
|00006270| 61 6e 64 20 79 6f 75 72 | 20 6c 69 62 72 61 72 69 |and your| librari|
|00006280| 65 73 20 69 6e 74 6f 20 | 59 5f 48 4f 4d 45 2f 2e |es into |Y_HOME/.|
|00006290| 2e 2f 6c 69 62 20 28 6f | 72 20 69 74 73 20 63 6f |./lib (o|r its co|
|000062a0| 6e 74 72 69 62 29 2c 20 | 61 6e 64 20 79 6f 75 20 |ntrib), |and you |
|000062b0| 61 72 65 20 64 6f 6e 65 | 2e 0a 0a 23 20 2d 2d 2d |are done|...# ---|
|000062c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000062d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000062e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000062f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006300| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 23 20 4d 6f 76 69 6e |--------|.# Movin|
|00006310| 67 20 61 20 53 70 65 63 | 69 61 6c 20 59 6f 72 69 |g a Spec|ial Yori|
|00006320| 63 6b 20 45 78 65 63 75 | 74 61 62 6c 65 20 46 69 |ck Execu|table Fi|
|00006330| 6c 65 20 74 6f 20 41 6e | 6f 74 68 65 72 20 4e 65 |le to An|other Ne|
|00006340| 74 77 6f 72 6b 0a 23 20 | 2d 2d 2d 2d 2d 2d 2d 2d |twork.# |--------|
|00006350| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006360| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006370| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006380| 2d 2d 0a 0a 23 20 59 6f | 75 20 63 61 6e 20 6d 6f |--..# Yo|u can mo|
|00006390| 76 65 20 79 6f 75 72 20 | 59 6f 72 69 63 6b 20 74 |ve your |Yorick t|
|000063a0| 6f 20 74 68 65 20 73 61 | 6d 65 20 74 79 70 65 20 |o the sa|me type |
|000063b0| 6f 66 20 6d 61 63 68 69 | 6e 65 20 6f 6e 20 61 6e |of machi|ne on an|
|000063c0| 6f 74 68 65 72 20 6e 65 | 74 77 6f 72 6b 0a 23 20 |other ne|twork.# |
|000063d0| 77 69 74 68 6f 75 74 20 | 68 61 76 69 6e 67 20 74 |without |having t|
|000063e0| 6f 20 72 65 63 6f 6d 70 | 69 6c 65 20 69 74 2e 20 |o recomp|ile it. |
|000063f0| 20 48 6f 77 65 76 65 72 | 2c 20 69 66 20 74 68 65 | However|, if the|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.